diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..39f5579 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.13.0 + hooks: + - id: ruff-check + args: [--fix] # Lint and auto-fix + - id: ruff-format # Format code like black \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index e600b39..c2dfd79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,5 +13,6 @@ dependencies = [ [dependency-groups] dev = [ "pytest", + "pre-commit", "pytest-cov", ]