Skip to content

Commit

Permalink
Add 'make lint/flake8/isort/mypy' for convenience
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed May 3, 2024
1 parent 8bca0b9 commit 45359ca
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.PHONY: all
all:
@echo "Nothing to build. Try 'make test' perhaps?"
@echo "Nothing to build. Try 'make help' perhaps?"

##: Testing

.PHONY: test
test: ##: run tests
Expand All @@ -22,6 +24,26 @@ diff-cover: coverage ##: show untested code in this branch
coverage xml
diff-cover coverage.xml

##: Linting

.PHONY: lint
lint: ##: run all linters
tox -p auto -e flake8,mypy,isort,check-manifest,check-python-versions

.PHONY: flake8
flake8: ##: check for style problems
tox -e flake8

.PHONY: isort
isort: ##: check for incorrect import ordering
tox -e isort

.PHONY: mypy
mypy: ##: check for type errors
tox -e mypy

##: Releasing

.PHONY: distcheck
distcheck: distcheck-self # also release.mk will add other checks

Expand All @@ -45,3 +67,4 @@ update-readme:

FILE_WITH_VERSION = check_manifest.py
include release.mk
HELP_INDENT = " "

0 comments on commit 45359ca

Please sign in to comment.