File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -585,7 +585,8 @@ jobs:
585
585
run : |
586
586
echo '```console' > "$GITHUB_STEP_SUMMARY"
587
587
# Enable color output for pre-commit and remove it for the summary
588
- SKIP=cargo-fmt,clippy,dev-generate-all pre-commit run --all-files --show-diff-on-failure --color=always | \
588
+ # Use --hook-stage=manual to enable slower pre-commit hooks that are skipped by default
589
+ SKIP=cargo-fmt,clippy,dev-generate-all pre-commit run --all-files --show-diff-on-failure --color=always --hook-stage=manual | \
589
590
tee >(sed -E 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})*)?[mGK]//g' >> "$GITHUB_STEP_SUMMARY") >&1
590
591
exit_code="${PIPESTATUS[0]}"
591
592
echo '```' >> "$GITHUB_STEP_SUMMARY"
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ fail_fast: false
2
2
3
3
exclude : |
4
4
(?x)^(
5
+ .github/workflows/release.yml|
5
6
crates/red_knot_vendored/vendor/.*|
6
7
crates/red_knot_workspace/resources/.*|
7
8
crates/ruff_linter/resources/.*|
93
94
rev : v0.9.2
94
95
hooks :
95
96
- id : zizmor
96
- # `release.yml` is autogenerated by `dist`; security issues need to be fixed there
97
- # (https://opensource.axo.dev/cargo-dist/)
98
- exclude : .github/workflows/release.yml
99
97
100
98
- repo : https://github.com/python-jsonschema/check-jsonschema
101
99
rev : 0.30.0
@@ -108,9 +106,11 @@ repos:
108
106
rev : v1.7.4
109
107
hooks :
110
108
- id : actionlint
111
- # `release.yml` is autogenerated by `dist`; issues need to be fixed there
112
- # (https://opensource.axo.dev/cargo-dist/)
113
- exclude : .github/workflows/release.yml
109
+ stages :
110
+ # This hook is disabled by default, since it's quite slow.
111
+ # To run all hooks *including* this hook, use `uvx pre-commit run -a --hook-stage=manual`.
112
+ # To run *just* this hook, use `uvx pre-commit run -a actionlint --hook-stage=manual`.
113
+ - manual
114
114
args :
115
115
- " -ignore=SC2129" # ignorable stylistic lint from shellcheck
116
116
- " -ignore=SC2016" # another shellcheck lint: seems to have false positives?
You can’t perform that action at this time.
0 commit comments