Last active
October 3, 2021 07:53
-
-
Save jstutters/06491fac12d1e726b3cc5869b673e7ee to your computer and use it in GitHub Desktop.
Makefile for testing and linting python projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROJECT:= name | |
.PHONY: check test codestyle docstyle lint pip | |
check: test codestyle docstyle lint | |
test: | |
py.test --cov=$(PROJECT) tests | |
codestyle: | |
pycodestyle $(PROJECT) | |
docstyle: | |
pydocstyle $(PROJECT) | |
lint: | |
pylint $(PROJECT) | |
pip: requirements.txt dev-requirements.txt | |
pip-sync requirements.txt dev-requirements.txt | |
requirements.txt: requirements.in | |
pip-compile requirements.in | |
dev-requirements.txt: dev-requirements.in requirements.txt | |
pip-compile dev-requirements.in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment