Skip to content

Commit d997364

Browse files
authored
Update pre-commit config (#4913)
To fix the following warnings: ```bash Warning: hook id `ruff` uses deprecated stage names (commit, push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. Warning: hook id `yapf` uses deprecated stage names (commit, push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. Warning: hook id `clang-format` uses deprecated stage names (commit, push) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. ``` CI run, for example: https://github.com/triton-lang/triton/actions/runs/11346522167/job/31555782632#step:6:51 I just used `pre-commit migrate-config` command. Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 79ace62 commit d997364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ repos:
2222
- id: ruff
2323
files: '^python/.*'
2424
args: ["--fix", "--line-length", "120"]
25-
stages: [commit, push, manual]
25+
stages: [pre-commit, pre-push, manual]
2626
exclude: |
2727
(?x)(
2828
^python/triton/runtime/.*|
@@ -35,14 +35,14 @@ repos:
3535
hooks:
3636
- id: yapf
3737
args: ["-p", "-i"]
38-
stages: [commit, push, manual]
38+
stages: [pre-commit, pre-push, manual]
3939
exclude: "python/test/unit/language/test_line_info.py"
4040

4141
- repo: https://github.com/pre-commit/mirrors-clang-format
4242
rev: v16.0.6
4343
hooks:
4444
- id: clang-format
45-
stages: [commit, push, manual]
45+
stages: [pre-commit, pre-push, manual]
4646

4747
# Expand YAML anchors in files used by github workflows, because github can't
4848
# do this itself. This lets us use anchors, which avoids code duplication.

0 commit comments

Comments
 (0)