-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (36 loc) · 844 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
44
45
46
47
48
49
50
VERSION=`poetry version --short`
.PHONY: mdformat
mdformat:
poetry run mdformat *.md
.PHONY: mdformat-check
mdformat-check:
poetry run mdformat --check *.md
.PHONY: mypy
mypy:
poetry run mypy src
.PHONY: install_dev
install_dev:
poetry install --sync --with dev
.PHONY: test
test:
poetry run pytest tests --cov=src --cov-report term-missing --durations 5
.PHONY: lint
lint:
poetry run python3 -m ruff check --output-format=full
poetry run python3 -m ruff format --diff
$(MAKE) mdformat-check
$(MAKE) mypy
.PHONY: format
format:
poetry run python3 -m ruff format
poetry run python3 -m ruff check --fix
$(MAKE) mdformat
.PHONY: test-all
test-all:
$(MAKE) lint
$(MAKE) test
.PHONY: document
document:
rm -rf docs/source/reference/generated || true
rm -rf public/*
poetry run sphinx-build -b html docs/source public/