-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (34 loc) · 912 Bytes
/
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
PKGNAME=km3astro
default: build
all: install
install:
python3 -m pip install .
install-dev:
python3 -m pip install -e ".[dev]"
python3 -m pip install -e ".[extras]"
clean:
python setup.py clean --all
test:
py.test --junitxml=./reports/junit.xml -o junit_suite_name=$(PKGNAME) tests
benchmark:
scripts/run_tests.py benchmarks
test-cov:
py.test --cov ./$(PKGNAME) --cov-report term-missing --cov-report xml:reports/coverage.xml --cov-report html:reports/coverage tests
test-loop:
py.test $(ALLNAMES)
ptw --ext=.py,.pyx --ignore=doc $(ALLNAMES)
.PHONY: black
black:
black $(PKGNAME)
black tests
black examples
black doc/conf.py
black setup.py
.PHONY: black-check
black-check:
black --check $(PKGNAME)
black --check tests
black --check examples
black --check doc/conf.py
black --check setup.py
.PHONY: all black black-check clean install install-dev test test-cov test-loop benchmark