rpmbuilder/.pre-commit-config.yaml
Ben Vincent f74487d517 feat: add pre-commit
- test yamllint
- test ruff linting/formatter
- fix yaml errors
2025-11-30 21:45:18 +11:00

21 lines
492 B
YAML

---
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.37.1
hooks:
- id: yamllint
args:
[
#"-d {extends: relaxed, rules: {line-length: disable}}",
"-d {rules: {line-length: disable}}",
"-s",
]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.7
hooks:
# Run the linter.
- id: ruff-check
args: [--fix]
# Run the formatter.
- id: ruff-format