mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-07-01 20:20:29 +08:00
Update pre-config to include Python and JSON for EOL, whitespace checks
This commit is contained in:
parent
8d400cfb7f
commit
cab7c66b4f
@ -32,7 +32,9 @@ repos:
|
|||||||
.*\.hpp$|
|
.*\.hpp$|
|
||||||
.*\.h$|
|
.*\.h$|
|
||||||
.*\.cu$|
|
.*\.cu$|
|
||||||
.*\.cuh$
|
.*\.cuh$|
|
||||||
|
.*\.py$|
|
||||||
|
.*\.json$
|
||||||
)
|
)
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
exclude: |
|
exclude: |
|
||||||
@ -53,7 +55,9 @@ repos:
|
|||||||
.*\.hpp$|
|
.*\.hpp$|
|
||||||
.*\.h$|
|
.*\.h$|
|
||||||
.*\.cu$|
|
.*\.cu$|
|
||||||
.*\.cuh$
|
.*\.cuh$|
|
||||||
|
.*\.py$|
|
||||||
|
.*\.json$
|
||||||
)
|
)
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
exclude: |
|
exclude: |
|
||||||
@ -74,7 +78,9 @@ repos:
|
|||||||
.*\.hpp$|
|
.*\.hpp$|
|
||||||
.*\.h$|
|
.*\.h$|
|
||||||
.*\.cu$|
|
.*\.cu$|
|
||||||
.*\.cuh$
|
.*\.cuh$|
|
||||||
|
.*\.py$|
|
||||||
|
.*\.json$
|
||||||
)
|
)
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v19.1.6
|
rev: v19.1.6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user