-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (29 loc) · 840 Bytes
/
Makefile
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
clean:
@rm -rf build dist .eggs *.egg-info
@rm -rf .coverage coverage.xml htmlcov report.xml .tox
@find . -type d -name '.mypy_cache' -exec rm -rf {} +
@find . -type d -name '__pycache__' -exec rm -rf {} +
@find . -type d -name '*pytest_cache*' -exec rm -rf {} +
@find . -type f -name '*.py[co]' -exec rm -rf {} +
@find . -type f -name '*.prof' -exec rm -rf {} +
format: clean
@poetry run black --version
@poetry run black .
@echo "isort, version `poetry run isort --vn`"
@poetry run isort .
lint: clean
@poetry run black --version
@poetry run black --check .
@poetry run flake8 --version
@poetry run flake8
@poetry run mypy --version
@poetry run mypy .
test: clean
@poetry run pytest --verbose \
--cov=py_grpc_profile \
--cov-report=term \
--cov-report=xml \
--cov-report=html \
tests
tox:
@poetry run tox