-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (21 loc) · 1001 Bytes
/
Makefile
File metadata and controls
31 lines (21 loc) · 1001 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
venv:
./uv venv
requirements.test: uv requirements.test.in requirements.constraints
./uv pip compile requirements.test.in -c requirements.constraints -o requirements.test
sync: requirements.test
./uv pip sync requirements.test
unittest:
PYTHONPATH=. .venv/bin/pytest -vvv
watch-tests: sync
PYTHONPATH=. .venv/bin/ptw . --now -vvv
pre-commit: sync
.venv/bin/pre-commit run -a
mypy: sync
MYPYPATH=stubs .venv/bin/dmypy run .
watch-mypy:
.venv/bin/watchmedo auto-restart --directory=./ --pattern="*.py;*.pyi" --no-restart-on-command-exit --recursive -- ${MAKE} mypy
integration-tests: sync
cd integration_tests && ../.venv/bin/python test_banning_works.py
watch-integration-tests:
.venv/bin/watchmedo auto-restart --directory=./ --pattern="*.py;*.pyi;*.yaml.j2" --ignore-patterns "config/custom_components/ban_allowlist/*.py" --no-restart-on-command-exit --recursive -- ${MAKE} integration-tests
.PHONY: sync venv watch-tests mypy watch-mypy integration-tests watch-integration-tests