GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||
GeezerVison is showing github.com — GH-109408: Move the Python file whitespace check from patchcheck to pre-commit by AA-Turner · Pull Request #109891 · python/cpython Conversation
|
|
Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @AA-Turner for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @AA-Turner for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Sorry, @AA-Turner and @hugovk, I could not cleanly backport this to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…k to pre-commit (pythonGH-109891) (cherry picked from commit 08ec4a1) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
|
GH-110633 is a backport of this pull request to the 3.12 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ck to pre-commit (GH-109891) (#110633) GH-109408: Move the Python file whitespace check from patchcheck to pre-commit (GH-109891) (cherry picked from commit 08ec4a1) Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]>
|
@AA-Turner Please could you take care of the backports in #109890 and here? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…tchcheck to pre-commit (pythonGH-109891) Co-authored-by: Hugo van Kemenade <[email protected]>. (cherry picked from commit 08ec4a1) Co-authored-by: Adam Turner <[email protected]>
|
GH-110641 is a backport of this pull request to the 3.11 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I've found a problem with this (and the C one) when running on macOS, pre-commit cannot find an executable called ❯ pre-commit run --all-files Run Ruff on Lib/test/....................................................Passed Run Ruff on Argument Clinic..............................................Passed check toml...............................................................Passed check yaml...............................................................Passed fix end of files.........................................................Passed trim trailing whitespace.................................................Passed Check Python file whitespace.............................................Failed - hook id: python-file-whitespace - exit code: 1 Executable `python` not found Check C file whitespace..................................................Failed - hook id: c-file-whitespace - exit code: 1 Executable `python` not found Sphinx lint..............................................................Passed Check hooks apply to the repository......................................Passed Check for useless excludes...............................................Passed It works with Is there a portable solution? One option could be like https://github.com/pre-commit/pre-commit-hooks/blob/main/.pre-commit-hooks.yaml which has entries such as: - id: check-added-large-files name: check for added large files description: prevents giant files from being committed. entry: check-added-large-files language: python stages: [commit, push, manual] Which uses a file like https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_added_large_files.py |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
(So let's hold off on the remaining backports until this is fixed.) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The The drawback with A |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…k to pre-commit (python#109891) Co-authored-by: Hugo van Kemenade <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.