mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Add configuration for pre-commit, ruff as a hook and configuration to run ruff whenever a pull request is opened or code is pushed.
15 lines
350 B
YAML
15 lines
350 B
YAML
---
|
|
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/
|