-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
35 lines (29 loc) · 865 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
# makefile used for testing
#
#
export DATA_FILES := $(PWD)/docs/source/_static/data
all: test_notebooks test_coverage
.PHONY: docs
install:
python3 -m pip install -U -e .[tests,docs]
python3 -m bash_kernel.install
test:
python3 -m pytest -vv $(PWD)/tests
rm -rf '='
test_notebooks:
python3 -m pytest -vv --nbval-lax $(PWD)/docs/source
test_coverage:
python3 -m pytest -vv \
--cov=$(PWD)/src/tintx --cov-report html:coverage_report \
--cov-report xml --junitxml report.xml
rm -rf '='
python3 -m coverage report
docs:
make -C docs clean
make -C docs html
lint:
flake8 src/tintx --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 src/tintx --ignore E203 --count --exit-zero --max-complexity=15 --max-line-length=127 --statistics
black --check -t py311 -l 82 src/tintx
isort --check --profile black -t py311 -l 82 src/tintx
mypy