Skip to content

Commit d7dc416

Browse files
aniketpati1121Aniket Patil
andauthored
chore: update pre-commit config and formatting (#2047)
* chore: refine pre-commit config (exclude patch files, remove yaml formatting) Signed-off-by: Aniket Patil <[email protected]> * chore: refine pre-commit config based on maintainer feedback Signed-off-by: Aniket Patil <[email protected]> --------- Signed-off-by: Aniket Patil <[email protected]> Co-authored-by: Aniket Patil <[email protected]>
1 parent cf0c712 commit d7dc416

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,32 @@
1+
exclude: |
2+
.*\.patch$
13
2-
exclude: '^patches/'
34
repos:
45
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
6+
rev: v6.0.0
67
hooks:
78
- id: check-added-large-files
89
- id: check-ast
910
- id: check-case-conflict
1011
- id: check-docstring-first
11-
- id: check-executables-have-shebangs
12+
# - id: check-executables-have-shebangs
1213
- id: check-json
1314
- id: check-merge-conflict
14-
# TODO: (goverter 1.3.2) generated files are marked 777 (see: https://github.com/jmattheis/goverter/issues/128)
15-
# - id: check-shebang-scripts-are-executable
1615
- id: check-symlinks
1716
- id: debug-statements
1817
- id: detect-private-key
18+
exclude: '.*_test\.go$'
1919
- id: end-of-file-fixer
20+
exclude: '^clients/python/src/mr_openapi'
2021
- id: trailing-whitespace
22+
exclude: '^clients/python/src/mr_openapi'
23+
2124
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.1.13
25+
rev: v0.7.0
2326
hooks:
2427
- id: ruff
2528
args: [--fix]
29+
files: '^clients/python'
2630
- id: ruff-format
27-
- repo: https://github.com/google/yamlfmt
28-
rev: v0.10.0
29-
hooks:
30-
- id: yamlfmt
31+
files: '^clients/python/src/mr_openapi'
32+

0 commit comments

Comments
 (0)