summaryrefslogtreecommitdiffstats
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index aabf1c5..9a27d30 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,6 +32,21 @@ repos:
types: [python]
exclude: '^(Lib/test/tokenizedata/|Tools/c-analyzer/cpython/_parser).*$'
+ - repo: local
+ hooks:
+ - id: c-file-whitespace
+ name: "Check C file whitespace"
+ entry: "python Tools/patchcheck/untabify.py"
+ language: "system"
+ types_or: ['c', 'c++']
+ # Don't check the style of vendored libraries
+ exclude: |
+ (?x)^(
+ Modules/_decimal/.*
+ | Modules/libmpdec/.*
+ | Modules/expat/.*
+ )$
+
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v0.6.8
hooks: