Skip to content
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

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Conversation

@pre-commit-ci pre-commit-ci bot requested a review from a team as a code owner October 7, 2024 18:59
Copy link

github-actions bot commented Oct 7, 2024

Coverage report

This PR does not seem to contain any modification to coverable code.

@machikoyasuda machikoyasuda self-assigned this Oct 8, 2024
@@ -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]
Copy link
Member

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?

.pre-commit-config.yaml Outdated Show resolved Hide resolved
@machikoyasuda machikoyasuda force-pushed the pre-commit-ci-update-config branch from b94c4a1 to 58f8f45 Compare October 9, 2024 08:39
@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 58f8f45 to f8215c3 Compare October 14, 2024 18:24
@machikoyasuda
Copy link
Member

These are the warnings that appear on the main branch of this repo:

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 migrate-config command on this PR:

root@e332e85f3af6:/usr/src/calitp# pre-commit migrate-config
Configuration is already migrated.

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from f8215c3 to 71c7772 Compare October 21, 2024 18:19
@machikoyasuda
Copy link
Member

@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

@machikoyasuda
Copy link
Member

Set auto-merge on this PR

angela-tran
angela-tran previously approved these changes Oct 30, 2024
Copy link
Member

@angela-tran angela-tran left a 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

.pre-commit-config.yaml Outdated Show resolved Hide resolved
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)
@machikoyasuda machikoyasuda merged commit 73579c8 into main Nov 26, 2024
6 checks passed
@machikoyasuda machikoyasuda deleted the pre-commit-ci-update-config branch November 26, 2024 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants