Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. .PHONY: all clean lint type test test-cov
  2.  
  3. CMD:=poetry run
  4. PYMODULE:=j5
  5. TESTS:=tests
  6. EXTRACODE:=tests_hw
  7.  
  8. all: type test lint
  9.  
  10. lint:
  11. $(CMD) flake8 $(PYMODULE) $(TESTS) $(EXTRACODE)
  12.  
  13. type:
  14. $(CMD) mypy $(PYMODULE) $(TESTS) $(EXTRACODE)
  15.  
  16. test:
  17. $(CMD) pytest --cov=$(PYMODULE) $(TESTS)
  18.  
  19. test-cov:
  20. $(CMD) pytest --cov=$(PYMODULE) $(TESTS) --cov-report html
  21.  
  22. isort:
  23. $(CMD) isort --recursive $(PYMODULE) $(TESTS) $(EXTRACODE)
  24.  
  25. clean:
  26. git clean -Xdf # Delete all files in .gitignore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement