Skip to content

Commit 8d2410d

Browse files
committed
fix: normalize contrib makefile targets
1 parent ec7ec58 commit 8d2410d

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

evaluators/contrib/cisco/Makefile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
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

35
help:
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

1114
test:
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

1417
lint:
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

1720
lint-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

2023
typecheck:
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

2328
build:
2429
uv build
25-

evaluators/contrib/galileo/Makefile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help sync test lint lint-fix typecheck build publish
1+
.PHONY: help sync test lint lint-fix typecheck check build publish
22

33
PACKAGE := agent-control-evaluator-galileo
44

@@ -9,22 +9,25 @@ help:
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

1415
sync:
1516
uv sync
1617

1718
test:
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

2021
lint:
21-
uv run ruff check --config ../../../pyproject.toml src/
22+
uv run --with ruff --package $(PACKAGE) ruff check --config ../../../pyproject.toml src/
2223

2324
lint-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

2627
typecheck:
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

2932
build:
3033
uv build

0 commit comments

Comments
 (0)