rpmbuilder/.pre-commit-config.yaml
Ben Vincent 3fa0d39d43
All checks were successful
Build / build-8 (pull_request) Successful in 8s
Build / build-9 (pull_request) Successful in 8s
feat: add pre-commit
- test yamllint
- test ruff linting/formatter
- fix yaml errors
2025-11-30 21:45:55 +11:00

20 lines
441 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}}",
"-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