From 6509e94959cdd2c9eb312ef8990bf877c8cac6a9 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 11 Oct 2023 01:09:34 +0200 Subject: [PATCH 1/2] gh-110652: Fix pre-commit hooks on macOS --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a27d30fd4163e..0559161ce5cbf4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: hooks: - id: python-file-whitespace name: "Check Python file whitespace" - entry: 'python Tools/patchcheck/reindent.py --nobackup --newline LF' + entry: './Tools/patchcheck/reindent.py --nobackup --newline LF' language: 'system' types: [python] exclude: '^(Lib/test/tokenizedata/|Tools/c-analyzer/cpython/_parser).*$' @@ -36,7 +36,7 @@ repos: hooks: - id: c-file-whitespace name: "Check C file whitespace" - entry: "python Tools/patchcheck/untabify.py" + entry: "./Tools/patchcheck/untabify.py" language: "system" types_or: ['c', 'c++'] # Don't check the style of vendored libraries From 9501fab02da6da722b3cc4df3c8a55b89891b766 Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Wed, 11 Oct 2023 09:38:12 +0200 Subject: [PATCH 2/2] Use language: python --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0559161ce5cbf4..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: './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: "./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: | pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy