-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
40 lines (30 loc) · 1.31 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
lint-all: black isort flake8 #vulture darglint pylint ## run all linters
isort: ## sort import statements with isort
isort dadapy tests
isort-check: ## check import statements order with isort
isort --check-only dadapy tests
black: ## apply black formatting
black dadapy tests
black-check: ## check black formatting
black --check --verbose dadapy tests
flake8: ## check style with flake8
flake8 dadapy/base.py dadapy/metric_comparisons.py dadapy/clustering.py dadapy/id_estimation.py \
dadapy/density_estimation.py dadapy/id_discrete.py dadapy/data.py dadapy/feature_weighting.py \
dadapy/kstar.py dadapy/neigh_graph.py dadapy/density_advanced.py dadapy/hamming.py \
dadapy/diff_imbalance.py tests #dev_scripts examples
# to include the "dadapy" folder: pytest tests --doctest-modules dadapy tests/
test: ## run tests quickly with the default Python
pytest tests --doctest-modules tests/ \
--cov=dadapy \
--cov-report=xml \
--cov-report=html \
--cov-report=term
test-all: ## run tests on every Python version with tox
tox
test-nb: ## test notebooks in the examples folder
pytest examples --nbmake --nbmake-timeout=300
coverage: ## check code coverage quickly with the default Python
coverage run --source dadapy -m pytest
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html