Skip to content

Commit

Permalink
Add pre-commit to dev-setup
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sjdemartini authored and firaskafri committed May 3, 2023
1 parent 95a0642 commit c1a22bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"flake8==5.0.4",
"flake8-black==0.3.3",
"flake8-bugbear==22.9.11",
"pre-commit",
] + tests_require

setup(
Expand Down

0 comments on commit c1a22bf

Please sign in to comment.