forked from olist/correios
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
42 lines (30 loc) · 1.01 KB
/
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
34
35
36
37
38
39
40
41
42
.PHONY: help
help: ## This help
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | sort
clean:
@find . -name "*.pyc" | xargs rm -rf
@find . -name "*.pyo" | xargs rm -rf
@find . -name "__pycache__" -type d | xargs rm -rf
@rm -f .coverage
@rm -rf htmlcov/
@rm -f coverage.xml
@rm -f *.log
outdated: ## Show outdated dependencies
@pip list --outdated --format=columns
install:
pip install -U -r requirements-dev.txt
check-types: ## Check type annotations
mypy correios --ignore-missing-imports --follow-imports=skip
flake:
flake8 --max-line-length=120 correios tests
isort: ## Check imports
isort --check --diff -rc correios tests
fix-imports: ## Fix imports
isort -rc .
lint: flake isort ## Run code lint
test: clean lint ## Run tests
pytest -x
cov-test: clean lint ## Run coverage tests
pytest -x --cov=correios/ --cov-report=term-missing --cov-report=html:htmlcov
update-wsdl: ## Update wsdl files
@python correios/update_wsdl.py