-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 908 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 908 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
38
#
# These are run via the './run_tests' script
#
ifeq ("$(TEST_SETTINGS)", "")
TEST_SETTINGS=./config/test.cfg
endif
.PHONY: test check-syntax fix-syntax pytest docs
test: check-syntax pytest
pytest:
SETTINGS_FILE=$(TEST_SETTINGS) pytest --random-order --cov-report markdown:cov.md --cov=apps --cov=models ./tests/ ./models/
SETTINGS_FILE=$(TEST_SETTINGS) flask db upgrade
SETTINGS_FILE=$(TEST_SETTINGS) flask db check
check-syntax:
uv lock --check
ruff format --check ./*.py ./apps ./models ./tests
ruff check ./*.py ./apps ./models ./tests
mypy ./*.py ./apps ./models --txt-report mypy-report
fix-syntax:
ruff format ./*.py ./apps ./models ./tests
ruff check --fix ./*.py ./apps ./models ./tests
mypy ./*.py ./apps ./models
docs:
rm -Rf ./_docs
uv run --group docs sphinx-build ./docs ./_docs
docs-dev:
rm -Rf ./_docs
uv run --group docs sphinx-autobuild --watch . ./docs ./_docs