| 1 | repos: |
| 2 | - repo: https://github.com/pre-commit/pre-commit-hooks |
| 3 | rev: v3.3.0 |
| 4 | hooks: |
| 5 | - id: check-yaml |
| 6 | - id: end-of-file-fixer |
| 7 | - id: trailing-whitespace |
| 8 | - repo: https://github.com/astral-sh/ruff-pre-commit |
| 9 | # Ruff version. |
| 10 | rev: v0.3.0 |
| 11 | hooks: |
| 12 | # Run the linter. |
| 13 | - id: ruff |
| 14 | args: [ --fix ] |
| 15 | # Run the formatter. |
| 16 | - id: ruff-format |