-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (26 loc) · 834 Bytes
/
Makefile
File metadata and controls
37 lines (26 loc) · 834 Bytes
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
PYTHON ?= python3
.PHONY: docs docs-clean format format-check typecheck_pyright typecheck lint
docs:
$(PYTHON) -m sphinx -b html -W --keep-going docs docs/_build/html
docs-live:
sphinx-autobuild docs docs/_build/html
docs-clean:
rm -rf docs/_build docs/reference/autoapi
clean: docs-clean
find . -name "*.pyc" -print0 | xargs -0 rm -f
find . -name "*~" -print0 | xargs -0 rm -f
find . -name "__pycache__" -print0 | xargs -0 rm -rf
format:
$(PYTHON) -m ruff check src examples --select F401 --fix
$(PYTHON) -m isort src examples
$(PYTHON) -m black src examples
format-check:
$(PYTHON) -m ruff check src examples
$(PYTHON) -m isort --check-only src examples
$(PYTHON) -m black --check src examples
typecheck_pyright:
$(PYTHON) -m pyright
typecheck:
$(PYTHON) -m mypy
lint:
$(PYTHON) -m ruff check src examples