cli/makefile

34 lines
633 B
Makefile
Raw Normal View History

2021-07-30 11:48:32 +02:00
NAME = ytrssil
TESTS = tests
FILES_PY = $(shell find $(CURDIR)/$(NAME) $(CURDIR)/$(TESTS) -type f -name "*.py")
TEST_PY = $(shell find $(CURDIR)/$(TESTS) -type f -name "*.py")
setup-dev:
pip install -r requirements-dev.txt
pip install -e .
test:
2021-08-06 00:07:30 +02:00
python -m pytest --cov $(CURDIR)/$(NAME)
2021-07-30 11:48:32 +02:00
flake8:
@flake8 $(FILES_PY)
mypy:
@mypy --strict $(FILES_PY)
isort:
@isort -c $(FILES_PY)
validate: flake8 mypy isort
coverage:
2021-08-06 00:07:30 +02:00
python -m pytest --cov $(CURDIR)/$(NAME) --cov-report html
clean:
rm -rf $(CURDIR)/build
rm -rf $(CURDIR)/dist
rm -rf $(CURDIR)/htmlcov
rm -rf $(CURDIR)/.coverage
rm -rf $(CURDIR)/$(NAME).egg-info