-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 843 Bytes
/
Makefile
File metadata and controls
44 lines (36 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: install_lint_requirements
install_lint_requirements:
pip3 install -e .[lint]
.PHONY: lint
lint: install_lint_requirements
flake8 tests
black --line-length=79 --check --diff tests
pylint tests
isort --check-only tests setup.py
mypy tests
.PHONY: install_test_requirements
install_test_requirements:
pip3 install -e .[test]
.PHONY: test
test: install_test_requirements
pytest tests
.PHONY: clean
clean:
rm -rf .coverage
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf python_project_template.egg-info
rm -rf pip-wheel-metadata
find . -regex ".*__pycache__.*" -delete
find . -regex "*.py[co]" -delete
.PHONY: format
format:
black --line-length=79 tests
isort tests setup.py
.PHONY: install
install:
pip3 install .
TARGET_DIR := .
.PHONY: generate
generate: install
cookiecutter -v . --output-dir="$(TARGET_DIR)"