| 1 |
SHELL=/bin/bash |
| 2 |
|
| 3 |
lint: |
| 4 |
ruff check $$(dirname */__init__.py) |
| 5 |
mypy --install-types --non-interactive --check-untyped-defs $$(dirname */__init__.py) |
| 6 |
|
| 7 |
test: |
| 8 |
python ./test/test.py -v |
| 9 |
|
| 10 |
init_docs: |
| 11 |
cd docs; sphinx-quickstart |
| 12 |
|
| 13 |
docs: |
| 14 |
python -m pip install furo sphinx-copybutton sphinxext-opengraph |
| 15 |
sphinx-build docs docs/html |
| 16 |
|
| 17 |
install: |
| 18 |
-rm -rf dist |
| 19 |
python -m pip install build |
| 20 |
python -m build |
| 21 |
python -m pip install --upgrade $$(echo dist/*.whl)[test] |
| 22 |
|
| 23 |
.PHONY: test lint release docs |
| 24 |
|
| 25 |
include common.mk |