From 92f9ae1086cc548c9a0ca9f9b78a9f9eee45c4e2 Mon Sep 17 00:00:00 2001 From: Marvin Vogt Date: Fri, 13 Sep 2024 23:55:43 +0000 Subject: [PATCH] Add basic justfile --- justfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..f912ead --- /dev/null +++ b/justfile @@ -0,0 +1,18 @@ +default: check-lockfile lint type-check test + +# Check if the lockfile is up to date +check-lockfile: + uv lock --locked + +# Lint code and check formatting using ruff +lint: + uv run ruff check src tests + uv run ruff format --check src tests + +# Validate static types using mypy +type-check: + uv run mypy src + +# Run tests using pytest +test: + uv run pytest tests