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.
This commit is contained in:
Steven DeMartini 2023-05-02 10:12:49 -07:00 committed by Firas K
parent 95a0642818
commit c1a22bfd91
2 changed files with 2 additions and 0 deletions

View File

@ -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:

View File

@ -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(