From c1a22bfd91aa3b298ea8f293b1a9f6ece7a46a8e Mon Sep 17 00:00:00 2001 From: Steven DeMartini Date: Tue, 2 May 2023 10:12:49 -0700 Subject: [PATCH] Add pre-commit to dev-setup pre-commit is currently configured nicely but hasn't been part of the Makefile setup and isn't mentioned in the contributing notes. This change makes it so that pre-commit is installed as a part of the dev setup, whereas before it had to be manually installed. --- Makefile | 1 + setup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 391c454..29c412b 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ help: .PHONY: dev-setup ## Install development dependencies dev-setup: pip install -e ".[dev]" + python -m pre_commit install .PHONY: tests ## Run unit tests tests: diff --git a/setup.py b/setup.py index d9aefef..cc9770c 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,7 @@ dev_requires = [ "flake8==5.0.4", "flake8-black==0.3.3", "flake8-bugbear==22.9.11", + "pre-commit", ] + tests_require setup(