diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..42b0160 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +PYTHON ?= python + +all: + +test: + $(MAKE) test-noclean + $(MAKE) clean + +test-noclean: + python3 -m pytest --benchmark-disable --tb=short + +typecheck: + $(MAKE) typecheck-noclean + $(MAKE) clean + +typecheck-noclean: + mypy -p project-dummy --warn-redundant-casts + +coverage: + $(MAKE) coverage-noclean + $(MAKE) clean + +coverage-noclean: + python3 -m pytest --cov project-dummy --benchmark-disable --tb=short + +clean: + @rm -rf ./dist/ ./__pycache__/ ./tests/__pycache__/ + @rm -rf ./.benchmarks ./.pytest_cache ./.mypy_cache + @rm -rf ./packages/ + +.PHONY: all clean test typecheck coverage |