-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (28 loc) · 721 Bytes
/
Copy pathMakefile
File metadata and controls
42 lines (28 loc) · 721 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
build :
poetry build
clean :
$(RM) -rf build dist *.egg-info
coverage :
poetry run coverage run --source=pyairnow -m pytest tests
coverage-html :
poetry run coverage html -d .htmlcov && open .htmlcov/index.html
coverage-report :
poetry run coverage report -m
lint :
poetry run flake8
publish :
poetry publish
requirements :
poetry export -f requirements.txt -o requirements-dev.txt --with dev
test :
poetry run python -m pytest tests
test-x :
poetry run python -m pytest tests -x
test-wip :
poetry run python -m pytest tests -m wip
type-check :
poetry run mypy pyairnow
all: test lint build publish
.PHONY: build \
coverage coverage-html coverage-report \
lint test test-wip test-x type-check