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:
parent
c8bb0116a0
commit
3208241a62
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user