-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (40 loc) · 1.56 KB
/
Makefile
File metadata and controls
54 lines (40 loc) · 1.56 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.PHONY: help clean clean-pyc clean-build typecheck typecheck-xml lint lint-xml test test-xml integration
help:
@echo "clean - clean all artefacts"
@echo "clean-build - remove build artefacts"
@echo "clean-pyc - remove Python file artefacts"
@echo "typecheck - check types with mypy"
@echo "test - run tests and check coverage"
@echo "integration - run full pipeline test"
@echo "lint - check style with flake8"
@echo "typecheck-xml - check types with mypy with xml output"
@echo "test-xml - run tests and check coverage with xml output"
@echo "lint-xml - check style with flake8 with xml output"
@echo "isort - reorder imports with isort"
clean: clean-build clean-pyc
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
typecheck:
mypy ./landshark
typecheck-xml:
mypy --junit-xml=test_output/mypy/results.xml ./landshark
lint:
py.test --flake8 ./landshark -p no:regtest --cache-clear
lint-xml:
py.test --junit-xml=test_output/flake8/results.xml --flake8 ./landshark -p no:regtest --cache-clear
test:
py.test --cov=./landshark --cov-report term-missing --cache-clear tests landshark
integration:
py.test -v --cache-clear integration
integration-xml:
py.test -v --junit-xml=test_output/integration/results.xml --cache-clear integration
test-xml:
py.test --junit-xml=test_output/pytest/results.xml --cov=./landshark --cov-report=html:test_output/coverage --cache-clear --cov-fail-under=15 tests landshark
isort:
isort --recursive .