diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a27d30fd4163e..0623dd56b98cf6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,8 +27,8 @@ repos: hooks: - id: python-file-whitespace name: "Check Python file whitespace" - entry: 'python Tools/patchcheck/reindent.py --nobackup --newline LF' - language: 'system' + entry: 'Tools/patchcheck/reindent.py --nobackup --newline LF' + language: 'python' types: [python] exclude: '^(Lib/test/tokenizedata/|Tools/c-analyzer/cpython/_parser).*$' @@ -36,8 +36,8 @@ repos: hooks: - id: c-file-whitespace name: "Check C file whitespace" - entry: "python Tools/patchcheck/untabify.py" - language: "system" + entry: "Tools/patchcheck/untabify.py" + language: "python" types_or: ['c', 'c++'] # Don't check the style of vendored libraries exclude: |
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: