Skip to content

Commit e67b132

Browse files
authored
Leave only one ruff-pre-commit hook in .pre-commit-config.yaml (#2852)
When merging code with upstream, it would be better if the styles were the same. Signed-off-by: Anatoly Myachev <[email protected]>
1 parent a8fa190 commit e67b132

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
rev: v0.7.1
2222
hooks:
2323
- id: ruff
24-
files: '^python/.*'
24+
files: '^(python|benchmarks|third_party/intel|scripts)/.*'
2525
args: ["--fix", "--exit-non-zero-on-fix"]
2626
exclude: |
2727
(?x)(
@@ -69,14 +69,6 @@ repos:
6969
args: ["-c", "bandit.yaml", "-s", "B404,B603,B607"]
7070
stages: [pre-commit, pre-push, manual]
7171

72-
- repo: https://github.com/astral-sh/ruff-pre-commit
73-
rev: v0.1.3
74-
hooks:
75-
- id: ruff
76-
files: '^(benchmarks|third_party/intel|scripts)/.*'
77-
args: ["--fix", "--line-length", "120"]
78-
stages: [pre-commit, pre-push, manual]
79-
8072
- repo: https://github.com/pycqa/pylint
8173
rev: v3.2.6
8274
hooks:

0 commit comments

Comments
 (0)