Add ruff pre-commit hooks

This commit is contained in:
Mike A
2023-12-31 15:14:03 +01:00
parent 40b5a38048
commit 2b954c5440
8 changed files with 650 additions and 480 deletions

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

@@ -0,0 +1,9 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.9
hooks:
# Run the linter.
- id: ruff
# Run the formatter.
- id: ruff-format