From 7d3566e2b458cd820342bedcafb7d744e6fb1643 Mon Sep 17 00:00:00 2001 From: James Gaboardi Date: Mon, 10 Jun 2024 17:11:23 -0400 Subject: [PATCH] add pre-commit (#32) --- .pre-commit-config.yaml | 7 +++++++ pyproject.toml | 1 + 2 files changed, 8 insertions(+) create mode 100644 .pre-commit-config.yaml 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 80f35db..49b04c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ Repository = "https://github.com/carsonfarmer/fastpair" tests = [ "codecov", "coverage", + "pre-commit", "pytest", "pytest-cov", "ruff",