Use pre-commits hooks instead of ruff directly

This commit is contained in:
2024-06-26 19:00:41 +02:00
parent e29e1101cd
commit c7135875b8
5 changed files with 235 additions and 19 deletions

10
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.10
hooks:
# Run the linter.
- id: ruff
args: ["--fix"]
# Run the formatter.
- id: ruff-format