Makefile 778 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # ---------- ---------- ---------- ---------- ---------- ----------
  2. #
  3. # fenrispunk_tools Makefile
  4. #
  5. # ---------- ---------- ---------- ---------- ---------- ----------
  6. target: help
  7. .PHONY: help
  8. help:
  9. @echo "Usage: make [PHONY]"
  10. @sed -n -e "/sed/! s/\.PHONY: //p" Makefile
  11. .PHONY: dev
  12. dev: fixed test safer
  13. .PHONY: fixed
  14. fixed:
  15. @black ./tests ./src/fenrispunk_tools ./bin/*
  16. .PHONY: safer
  17. safer:
  18. @mypy \
  19. src/fenrispunk_tools/config.py \
  20. src/fenrispunk_tools/utils/grid_tile_key.py \
  21. src/fenrispunk_tools/utils/standard.py \
  22. --disallow-untyped-defs \
  23. || echo "Try adding the path: export MYPYPATH=`pwd`/src/fenrispunk_tools"
  24. @echo ""
  25. .PHONY: test
  26. test:
  27. @python3 -m unittest discover -s tests -t .