Specify the target version in ruff.toml

This allows ruff even if it's not run through pre-commit to use the
correct target Python version.
This commit is contained in:
Dunedan 2024-09-13 21:49:58 +02:00
parent c8bb0116a0
commit 3208241a62
Signed by: Dunedan
GPG Key ID: 885B16854284E0B2
2 changed files with 2 additions and 4 deletions

View File

@ -26,14 +26,10 @@ repos:
- id: ruff
args:
- --output-format=full
- --target-version
- py311
exclude: ^source/tools/webservices/
- id: ruff-format
args:
- --check
- --target-version
- py311
exclude: ^source/tools/webservices/
- repo: local
hooks:

View File

@ -1,5 +1,7 @@
line-length = 99
target-version = "py311"
[format]
line-ending = "lf"