-
Notifications
You must be signed in to change notification settings - Fork 38
/
Makefile
43 lines (35 loc) · 1014 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
# Build, test, docs, and clean
help:
@echo "Commands:"
@echo ""
@echo " install install in editable mode"
@echo " test run the test suite and report coverage"
@echo " doc build the documentation"
@echo " format run ruff to automatically format the code"
@echo " check run ruff to check code style and quality"
@echo " typecheck run mypy for static type check"
@echo " clean clean up build and generated files"
@echo " dist-clean clean up egg-info files"
@echo ""
install:
python -m pip install --no-deps -e .
test:
pytest tests/test_*.py
doc:
make -C docs docs
format:
ruff check --fix --exit-zero .
ruff format .
check:
ruff check .
ruff format --check .
typecheck:
mypy HinetPy
clean:
find . -name "*.pyc" -exec rm -v {} \;
find . -name "*.mo" -exec rm -v {} \;
rm -rvf build dist sdist */__pycache__ .eggs/
rm -rvf .cache .pytest_cache .coverage* coverage.xml .ruff_cache .mypy_cache
rm -rvf testdir-*
dist-clean: clean
rm -rvf *.egg-info