aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-08-01 22:08:42 +0100
committerGravatar Chris Lovering <[email protected]>2024-08-01 22:08:42 +0100
commit525887dd5da101fc6964019108f73bd3a6a8dec1 (patch)
treefe959805839020b99a624631c5e303ffa9fe0c44 /Makefile
parentUpdate and lock dependencies (diff)
Add a basic litestar app
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 17 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 1375330..617d499 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,29 @@
-.PHONEY: setup sync lock lint precommit
+.PHONY: all install relock lock lockci lint lintdeps precommit test retest
-setup: sync precommit lint
+all: install precommit lint
-sync:
+install:
poetry install --sync
-lock:
+relock:
poetry lock
@poetry export --only main --output requirements.txt
- poetry install --sync --no-root
- pre-commit run --files pyproject.toml poetry.lock requirements.txt
+
+lintdeps:
+ @pre-commit run --files pyproject.toml poetry.lock requirements.txt
+
+lockci: relock lintdeps
+
+lock: relock install lintdeps
lint:
poetry run pre-commit run --all-files
precommit:
poetry run pre-commit install
+
+test:
+ pytest -n 4 --ff
+
+retest:
+ pytest -n 4 --lf