forked from DHI/mikeio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (27 loc) · 747 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
LIB = mikeio
LIB = mikeio
check: lint typecheck test
build: typecheck test
python -m build
lint:
ruff check .
pylint:
pylint --disable=all --enable=attribute-defined-outside-init mikeio/
test:
pytest --disable-warnings
typecheck:
mypy $(LIB)/
coverage:
pytest --cov-report html --cov=$(LIB) tests/
doctest:
# only test a specific set of files for now
pytest mikeio/dfs/*.py mikeio/dfsu/*.py mikeio/eum/*.py mikeio/pfs/*.py mikeio/spatial/_grid_geometry.py --doctest-modules
rm -f *.dfs* # remove temporary files, created from doctests
perftest:
pytest tests/performance/ --durations=0
docs: FORCE
cd docs && quarto add --no-prompt .
cd docs && quartodoc build
cd docs && quartodoc interlinks
quarto render docs
FORCE: