File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- .PHONY : help test lint lint-fix typecheck build
1+ .PHONY : help test lint lint-fix typecheck check build
2+
3+ PACKAGE := agent-control-evaluator-cisco
24
35help :
46 @echo " Agent Control Evaluator - Cisco AI Defense - Makefile commands"
57 @echo " make test - run pytest"
68 @echo " make lint - run ruff check"
79 @echo " make lint-fix - run ruff check --fix"
810 @echo " make typecheck - run mypy"
11+ @echo " make check - run test, lint, and typecheck"
912 @echo " make build - build package"
1013
1114test :
12- uv run --with pytest --with pytest-asyncio --with pytest-cov pytest tests --cov=src --cov-report=xml:../../../coverage-evaluators-cisco.xml -q
15+ uv run --with pytest --with pytest-asyncio --with pytest-cov --package $( PACKAGE ) pytest tests --cov=src --cov-report=xml:../../../coverage-evaluators-cisco.xml -q
1316
1417lint :
15- uv run --with ruff ruff check --config ../../../pyproject.toml src/
18+ uv run --with ruff --package $( PACKAGE ) ruff check --config ../../../pyproject.toml src/
1619
1720lint-fix :
18- uv run --with ruff ruff check --config ../../../pyproject.toml --fix src/
21+ uv run --with ruff --package $( PACKAGE ) ruff check --config ../../../pyproject.toml --fix src/
1922
2023typecheck :
21- uv run --with mypy mypy --config-file ../../../pyproject.toml src/
24+ uv run --with mypy --package $(PACKAGE ) mypy --config-file ../../../pyproject.toml src/
25+
26+ check : test lint typecheck
2227
2328build :
2429 uv build
25-
Original file line number Diff line number Diff line change 1- .PHONY : help sync test lint lint-fix typecheck build publish
1+ .PHONY : help sync test lint lint-fix typecheck check build publish
22
33PACKAGE := agent-control-evaluator-galileo
44
99 @echo " make lint - run ruff check"
1010 @echo " make lint-fix - run ruff check --fix"
1111 @echo " make typecheck - run mypy"
12+ @echo " make check - run test, lint, and typecheck"
1213 @echo " make build - build package"
1314
1415sync :
1516 uv sync
1617
1718test :
18- uv run pytest --cov=src --cov-report=xml:../../../coverage-evaluators-galileo.xml -q
19+ uv run --with pytest --with pytest-asyncio --with pytest-cov --package $( PACKAGE ) pytest tests --cov=src --cov-report=xml:../../../coverage-evaluators-galileo.xml -q
1920
2021lint :
21- uv run ruff check --config ../../../pyproject.toml src/
22+ uv run --with ruff --package $( PACKAGE ) ruff check --config ../../../pyproject.toml src/
2223
2324lint-fix :
24- uv run ruff check --config ../../../pyproject.toml --fix src/
25+ uv run --with ruff --package $( PACKAGE ) ruff check --config ../../../pyproject.toml --fix src/
2526
2627typecheck :
27- uv run mypy --config-file ../../../pyproject.toml src/
28+ uv run --with mypy --package $(PACKAGE ) mypy --config-file ../../../pyproject.toml src/
29+
30+ check : test lint typecheck
2831
2932build :
3033 uv build
You can’t perform that action at this time.
0 commit comments