1
0
forked from mirrors/0ad

Add ruff pre-commit hook

Add configuration for pre-commit, ruff as a hook and configuration to
run ruff whenever a pull request is opened or code is pushed.
This commit is contained in:
Dunedan
2024-08-23 14:32:22 +02:00
parent c49d4eedd0
commit d055090dd2
3 changed files with 37 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
---
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
hooks:
- id: ruff
args:
- --output-format=full
exclude: ^source/tools/webservices/
- id: ruff-format
args:
- --check
- --target-version
- py311
exclude: ^source/tools/webservices/