-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 1.02 KB
/
Makefile
File metadata and controls
39 lines (29 loc) · 1.02 KB
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
init:
poetry install
init-dev:
poetry install --with dev
default: lint test
lint: init-dev
poetry run flake8 --ignore E501,W503 tfworker tests
format: init-dev
poetry run black tfworker tests
@poetry run seed-isort-config || echo "known_third_party setting changed. Please commit pyproject.toml"
poetry run isort tfworker tests
test: init-dev
poetry run pytest -p no:warnings --disable-socket
poetry run coverage report --fail-under=60 -m --skip-empty
ci-test: init-dev
poetry run pytest --disable-socket --junitxml=reports/junit.xml
poetry run coverage xml -o reports/coverage.xml
dep-test: init-dev
poetry run pytest --disable-socket
poetry run coverage report --fail-under=60 -m --skip-empty
typecheck: init-dev
poetry run mypy -p tfworker
typecheck-report: init-dev
-poetry run mypy tfworker | tee mypy-report.txt
clean:
@echo "removing python temporary and build files "
@rm -rf build dist .eggs terraform_worker.egg-info
@find . -name *.pyc -exec rm {} \;
@find . -name __pycache__ -type d -exec rmdir {} \;