[tooling] Expose commands that are used; add aliases and default recipe
This commit is contained in:
parent
ca09a2916e
commit
77512fc73c
1 changed files with 11 additions and 5 deletions
16
justfile
16
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
|
||||
|
|
Loading…
Reference in a new issue