diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..c16c548 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +files: "fastpair\/" +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.4.8" + hooks: + - id: ruff + - id: ruff-format diff --git a/pyproject.toml b/pyproject.toml index f099652..c4bfbf4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,7 @@ Repository = "https://github.com/carsonfarmer/fastpair" tests = [ "codecov", "coverage", + "pre-commit", "pytest", "pytest-cov", "ruff",