diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..0d6e354 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.11.4 + hooks: + - id: ruff + args: [--fix] + - id: ruff-format diff --git a/requirements-dev.txt b/requirements-dev.txt index 8051f92..d5c23a3 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -10,6 +10,7 @@ pytest-mock>=3.15.1 ruff>=0.1.0 black>=23.0.0 mypy>=1.0.0 +pre-commit>=3.0.0 # Type stubs types-flask>=1.1.0