-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
63 lines (48 loc) · 1.28 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
58
59
60
61
62
63
install:
pip install .
install-dev:
pip install -e ".[dev]"
python -m ipykernel install --user --name=km3irf
install-test:
pip install -e ".[test]"
python -m ipykernel install --user --name=km3irf
clean:
python setup.py clean --all
test:
py.test --junitxml=./reports/junit.xml -o junit_suite_name=km3irf tests
test-cov:
py.test --cov src/km3irf --cov-report term-missing --cov-report xml:reports/coverage.xml --cov-report html:reports/coverage tests
test-loop:
py.test tests
ptw --ext=.py,.pyx --ignore=doc tests
flake8:
py.test --flake8
pep8: flake8
docstyle:
py.test --docstyle
lint:
py.test --pylint
.PHONY: black
black:
black --exclude 'version.py' src/km3irf
black examples
black tests
black doc/conf.py
black setup.py
.PHONY: black-check
black-check:
black --check --exclude 'version.py' src/km3irf
black --check examples
black --check tests
black --check doc/conf.py
black --check setup.py
black --check use_cases
.PHONY: black-diff
black-diff:
black --diff --color --exclude 'version.py' src/km3irf
black --diff --color examples
black --diff --color tests
black --diff --color doc/conf.py
black --diff --color setup.py
black --diff --color use_cases
.PHONY: all clean install install-dev test test-nocov flake8 pep8 docstyle black black-check black-diff