From 77512fc73cc890c78864efc7246f10e9e4d2bab7 Mon Sep 17 00:00:00 2001 From: bronsen Date: Thu, 21 Nov 2024 12:29:53 +0100 Subject: [PATCH] [tooling] Expose commands that are used; add aliases and default recipe --- justfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/justfile b/justfile index 785960b..3fe2aed 100644 --- a/justfile +++ b/justfile @@ -1,18 +1,24 @@ +default: test + +alias tc := test-coverage +alias l := lint +alias lf := lint-fix +alias c := compile-dependencies test: # pytest options can be found in pyproject.toml # look for [tool.pytest.ini_options] - @python -m pytest + python -m pytest test-coverage: # here we allow extra arguments to be passed to pytest - @python -m pytest --cov=src --cov-config=pyproject.toml + python -m pytest --cov=src --cov-config=pyproject.toml lint: - @ruff check . + ruff check . lint-fix: - @ruff check --fix . + ruff check --fix . compile-dependencies: - @pip-compile-multi + pip-compile-multi