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.
@@ -69,15 +69,15 @@ repos:
6969 - id : bandit
7070 files : ' ^(benchmarks|scripts|third_party/intel)/.*\.py$'
7171 args : ["-c", "bandit.yaml", "-s", "B404,B603,B607"]
72- stages : [commit, push, manual]
72+ stages : [pre- commit, pre- push, manual]
7373
7474 - repo : https://github.com/astral-sh/ruff-pre-commit
7575 rev : v0.1.3
7676 hooks :
7777 - id : ruff
7878 files : ' ^(benchmarks|third_party/intel|scripts)/.*'
7979 args : ["--fix", "--line-length", "120"]
80- stages : [commit, push, manual]
80+ stages : [pre- commit, pre- push, manual]
8181
8282 - repo : https://github.com/pycqa/pylint
8383 rev : v3.2.6
@@ -105,7 +105,7 @@ repos:
105105 - --disable=too-many-locals
106106 - --disable=too-many-statements
107107 - --disable=too-many-arguments
108- stages : [commit, push, manual]
108+ stages : [pre- commit, pre- push, manual]
109109
110110 - id : pylint
111111 name : pylint for benchmarks
@@ -136,7 +136,7 @@ repos:
136136 - --disable=too-many-statements
137137 - --disable=too-many-arguments
138138 - --disable=fixme
139- stages : [commit, push, manual]
139+ stages : [pre- commit, pre- push, manual]
140140
141141
142142exclude : |
0 commit comments