2024-11-21 12:29:53 +01:00
|
|
|
default: test
|
|
|
|
|
|
|
|
alias tc := test-coverage
|
|
|
|
alias l := lint
|
|
|
|
alias lf := lint-fix
|
|
|
|
alias c := compile-dependencies
|
2024-11-21 12:19:37 +01:00
|
|
|
|
|
|
|
test:
|
|
|
|
# pytest options can be found in pyproject.toml
|
|
|
|
# look for [tool.pytest.ini_options]
|
2024-11-21 12:29:53 +01:00
|
|
|
python -m pytest
|
2024-11-21 12:19:37 +01:00
|
|
|
|
|
|
|
test-coverage:
|
|
|
|
# here we allow extra arguments to be passed to pytest
|
2024-11-21 12:29:53 +01:00
|
|
|
python -m pytest --cov=src --cov-config=pyproject.toml
|
2024-11-21 12:19:37 +01:00
|
|
|
|
|
|
|
lint:
|
2024-11-21 12:29:53 +01:00
|
|
|
ruff check .
|
2024-11-21 12:19:37 +01:00
|
|
|
|
|
|
|
lint-fix:
|
2024-11-21 12:29:53 +01:00
|
|
|
ruff check --fix .
|
2024-11-21 12:19:37 +01:00
|
|
|
|
|
|
|
compile-dependencies:
|
2024-11-21 12:29:53 +01:00
|
|
|
pip-compile-multi
|