Declare support for Python 3.11 by hugovk · Pull Request #1541 · gitpython-developers/GitPython
Updated to move linting out of the Cygwin and Ubuntu workflows and into a dedicated workflow: this makes it clearer if the CI fails due to linting or a test failure. And there's no need to run linting on every Python version and OS.
To run the linting locally:
# Install the tool python -m pip install pre-commit # Lint all the files, only those in Git pre-commit run --all-files
You can also install it to run when you commit, and it only checks those staged commits. This is entirely optional, the CI will do its checks anyway, and you can run the above commands at any time.
Then commit as normal, and it will first run the lint. If it find problems, it will stop and halt the commit before completing. You then get to check the problems, make changes, and try the commit again. One benefit is "fail fast", you find errors before pushing.
If you change your mind:
And can still run manually via pre-commit run --all-files or let the CI deal with it.