forked from emfcamp/Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (27 loc) · 923 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (27 loc) · 923 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
39
#
# These are run via the './run_tests' script
#
ifeq ("$(TEST_SETTINGS)", "")
TEST_SETTINGS=./config/test.cfg
endif
.PHONY: test pytest check-syntax fix-syntax check-mypy docs docs-dev
test: check-syntax check-mypy 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
fix-syntax:
ruff format ./*.py ./apps ./models ./tests
ruff check --fix ./*.py ./apps ./models ./tests
check-mypy:
mypy ./*.py ./apps ./models --txt-report mypy-report
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