Skip to content

Commit cab7c66

Browse files
committed
Update pre-config to include Python and JSON for EOL, whitespace checks
1 parent 8d400cf commit cab7c66

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ repos:
3232
.*\.hpp$|
3333
.*\.h$|
3434
.*\.cu$|
35-
.*\.cuh$
35+
.*\.cuh$|
36+
.*\.py$|
37+
.*\.json$
3638
)
3739
- id: mixed-line-ending
3840
exclude: |
@@ -53,7 +55,9 @@ repos:
5355
.*\.hpp$|
5456
.*\.h$|
5557
.*\.cu$|
56-
.*\.cuh$
58+
.*\.cuh$|
59+
.*\.py$|
60+
.*\.json$
5761
)
5862
- id: trailing-whitespace
5963
exclude: |
@@ -74,7 +78,9 @@ repos:
7478
.*\.hpp$|
7579
.*\.h$|
7680
.*\.cu$|
77-
.*\.cuh$
81+
.*\.cuh$|
82+
.*\.py$|
83+
.*\.json$
7884
)
7985
- repo: https://github.com/pre-commit/mirrors-clang-format
8086
rev: v19.1.6

0 commit comments

Comments
 (0)