This specifies a language version pre-commit so it uses Python 3.10. This is very useful if, say, your default Python installation is 3.8 (as it is on many Linux systems) and you used the 3.8 installation on the repo, as pre-commit would use that and make black fail on files with match.
Changes
Add default_language_version to pre-commit and set it to python: python3.10.
Add language: python to Ruff.
Related Issues
Test Scenarios
Python Compatibility
[x] I've ensured my code works on Python 3.10.x
[ ] I've ensured my code works on Python 3.11.x
Checklist
[x] I've run the pre-commit code linter over all edited files
[ ] I've tested my changes on supported Python versions
[ ] I've added tests for my code, if applicable
[ ] I've updated / added documentation, where applicable
Pull Request Type
Description
This specifies a language version pre-commit so it uses Python 3.10. This is very useful if, say, your default Python installation is 3.8 (as it is on many Linux systems) and you used the 3.8 installation on the repo, as pre-commit would use that and make
black
fail on files withmatch
.Changes
default_language_version
to pre-commit and set it topython: python3.10
.language: python
to Ruff.Related Issues
Test Scenarios
Python Compatibility
3.10.x
3.11.x
Checklist
pre-commit
code linter over all edited files