Skip to content

Commit c1a22bf

Browse files
sjdemartinifiraskafri
authored andcommitted
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.
1 parent 95a0642 commit c1a22bf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ help:
66
.PHONY: dev-setup ## Install development dependencies
77
dev-setup:
88
pip install -e ".[dev]"
9+
python -m pre_commit install
910

1011
.PHONY: tests ## Run unit tests
1112
tests:

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"flake8==5.0.4",
3131
"flake8-black==0.3.3",
3232
"flake8-bugbear==22.9.11",
33+
"pre-commit",
3334
] + tests_require
3435

3536
setup(

0 commit comments

Comments
 (0)