forked from neuroquery/pubget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (41 loc) · 1.39 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
pubget_version := $(shell cat src/pubget/_data/VERSION)
.PHONY: test_all test test_plugin test_coverage test_coverage_strict test_mypy \
test_flake8 test_pylint run_full_pipeline run_full_pipeline_neurosynth \
compare_query_vs_pmcid_list doc format clean clean_all
test_all: test_mypy test_flake8 test_coverage_strict test test_plugin test_pylint
test:
tox
test_coverage_strict:
pytest --cov=pubget --cov-report=xml --cov-report=term --cov-fail-under=100 tests
coverage html
test_coverage:
pytest --cov=pubget --cov-report=xml --cov-report=term tests
coverage html
test_mypy:
mypy ./src/pubget/*.py
test_flake8:
flake8 ./src/pubget/*.py
flake8 tests/
test_pylint:
pylint ./src
test_plugin:
tox -e run_plugin
tox -c docs/example_plugin/tox.ini
run_full_pipeline:
python tests/run_full_pipeline.py -o /tmp/
run_full_pipeline_neurosynth:
python tests/run_full_pipeline.py --fit_neurosynth -o /tmp/
compare_query_vs_pmcid_list:
python tests/compare_query_vs_pmcid_list.py
doc:
pdoc --no-search --no-show-source -d numpy -o doc_build ./src/pubget
@sed --in-place 's/^\(.*pubget.*is a command-line tool for collecting.*\)$$'\
'/<p><b>This document describes pubget version $(pubget_version)<\/b><\/p>\n\1/' \
doc_build/pubget.html
format:
isort .
black .
clean:
rm -rf doc_build build dist htmlcov .coverage .coverage.*
clean_all: clean
rm -rf .mypy_cache .pytest_cache .tox