[tooling] Expose commands that are used; add aliases and default recipe

This commit is contained in:
bronsen 2024-11-21 12:29:53 +01:00
parent ca09a2916e
commit 77512fc73c

View file

@ -1,18 +1,24 @@
default: test
alias tc := test-coverage
alias l := lint
alias lf := lint-fix
alias c := compile-dependencies
test: test:
# pytest options can be found in pyproject.toml # pytest options can be found in pyproject.toml
# look for [tool.pytest.ini_options] # look for [tool.pytest.ini_options]
@python -m pytest python -m pytest
test-coverage: test-coverage:
# here we allow extra arguments to be passed to pytest # 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: lint:
@ruff check . ruff check .
lint-fix: lint-fix:
@ruff check --fix . ruff check --fix .
compile-dependencies: compile-dependencies:
@pip-compile-multi pip-compile-multi