| .PHONY: lint format test coverage complexity maintainability audit security \ |
| tune pre-process train app smoke-test guardrails check ci pre-commit all |
|
|
| lint: |
| uv run ruff check . |
|
|
| format: |
| uv run ruff format . |
|
|
| test: |
| uv run pytest |
|
|
| coverage: |
| uv run pytest --cov=src --cov-report=term-missing |
|
|
| complexity: |
| uv run radon cc . -a -s -nb |
|
|
| maintainability: |
| uv run radon mi . -s |
|
|
| audit: |
| uv run pip-audit |
|
|
| |
| |
| |
| security: |
| uv run bandit -r . -x ./.venv,./tests --severity-level medium |
|
|
| tune: |
| uv run python -m src.tune |
|
|
| |
| |
| |
| pre-process: |
| uv run python -m src.preprocess |
|
|
| |
| train: |
| uv run python -m src.train |
|
|
| |
| app: |
| uv run streamlit run app.py |
|
|
| smoke-test: |
| uv run python example_inference.py |
|
|
| |
| guardrails: |
| uv run python guardrail_evaluation.py |
|
|
| |
| ci: lint test |
|
|
| |
| |
| pre-commit: |
| prek run --all-files |
|
|
| |
| check: lint test complexity maintainability audit security |
|
|
| |
| all: format lint test coverage complexity maintainability audit security pre-process train smoke-test guardrails |
|
|