-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(pre-commit): autoupdate hooks #498
Conversation
.pre-commit-config.yaml
Outdated
@@ -10,8 +10,7 @@ default_install_hook_types: | |||
|
|||
# by default, confine hooks to these git stages (except for hooks that specify their own stages) | |||
# https://pre-commit.com/#top_level-default_stages | |||
default_stages: | |||
- commit | |||
default_stages: [commit-msg] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we probably want pre-commit
here as the default?
b94c4a1
to
58f8f45
Compare
58f8f45
to
f8215c3
Compare
These are the warnings that appear on the Running the postAttachCommand from devcontainer.json...
[1610 ms] Start: Run in container: /bin/bash .devcontainer/postAttach.sh
+ git config --global --add safe.directory /usr/src/calitp
+ pre-commit install --install-hooks --overwrite
[WARNING] top-level `default_stages` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this.
pre-commit installed at .git/hooks/pre-commit
pre-commit installed at .git/hooks/commit-msg
[WARNING] top-level `default_stages` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this.
+ pre-commit install --hook-type commit-msg
pre-commit installed at .git/hooks/commit-msg
Done. Press any key to close the terminal. To double-check the configs, I ran the root@e332e85f3af6:/usr/src/calitp# pre-commit migrate-config
Configuration is already migrated. |
f8215c3
to
71c7772
Compare
@angela-tran This ticket is finally ready for re-review. To refresh your memory, here's how we fixed it in Benefits: https://github.com/cal-itp/benefits/blob/f0687daca8b89544d4caeea8f6658555aa9f2393/.pre-commit-config.yaml#L8 |
Set auto-merge on this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. We'll need @thekaveman 's approval too
ccd1340
to
68a46c7
Compare
updates: - [github.com/compilerla/conventional-pre-commit: v3.4.0 → v3.6.0](compilerla/conventional-pre-commit@v3.4.0...v3.6.0) - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0) - [github.com/psf/black: 24.8.0 → 24.10.0](psf/black@24.8.0...24.10.0) - [github.com/igorshubovych/markdownlint-cli: v0.42.0 → v0.43.0](igorshubovych/markdownlint-cli@v0.42.0...v0.43.0)
68a46c7
to
2453ae1
Compare
updates: