Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions evaluators/contrib/cisco/Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
.PHONY: help test lint lint-fix typecheck build
.PHONY: help test lint lint-fix typecheck check build

PACKAGE := agent-control-evaluator-cisco

help:
@echo "Agent Control Evaluator - Cisco AI Defense - Makefile commands"
@echo " make test - run pytest"
@echo " make lint - run ruff check"
@echo " make lint-fix - run ruff check --fix"
@echo " make typecheck - run mypy"
@echo " make check - run test, lint, and typecheck"
@echo " make build - build package"

test:
uv run --with pytest --with pytest-asyncio --with pytest-cov pytest tests --cov=src --cov-report=xml:../../../coverage-evaluators-cisco.xml -q
uv run --with pytest --with pytest-asyncio --with pytest-cov --package $(PACKAGE) pytest tests --cov=src --cov-report=xml:../../../coverage-evaluators-cisco.xml -q

lint:
uv run --with ruff ruff check --config ../../../pyproject.toml src/
uv run --with ruff --package $(PACKAGE) ruff check --config ../../../pyproject.toml src/

lint-fix:
uv run --with ruff ruff check --config ../../../pyproject.toml --fix src/
uv run --with ruff --package $(PACKAGE) ruff check --config ../../../pyproject.toml --fix src/

typecheck:
uv run --with mypy mypy --config-file ../../../pyproject.toml src/
uv run --with mypy --package $(PACKAGE) mypy --config-file ../../../pyproject.toml src/

check: test lint typecheck

build:
uv build

13 changes: 8 additions & 5 deletions evaluators/contrib/galileo/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help sync test lint lint-fix typecheck build publish
.PHONY: help sync test lint lint-fix typecheck check build publish

PACKAGE := agent-control-evaluator-galileo

Expand All @@ -9,22 +9,25 @@ help:
@echo " make lint - run ruff check"
@echo " make lint-fix - run ruff check --fix"
@echo " make typecheck - run mypy"
@echo " make check - run test, lint, and typecheck"
@echo " make build - build package"

sync:
uv sync

test:
uv run pytest --cov=src --cov-report=xml:../../../coverage-evaluators-galileo.xml -q
uv run --with pytest --with pytest-asyncio --with pytest-cov --package $(PACKAGE) pytest tests --cov=src --cov-report=xml:../../../coverage-evaluators-galileo.xml -q

lint:
uv run ruff check --config ../../../pyproject.toml src/
uv run --with ruff --package $(PACKAGE) ruff check --config ../../../pyproject.toml src/

lint-fix:
uv run ruff check --config ../../../pyproject.toml --fix src/
uv run --with ruff --package $(PACKAGE) ruff check --config ../../../pyproject.toml --fix src/

typecheck:
uv run mypy --config-file ../../../pyproject.toml src/
uv run --with mypy --package $(PACKAGE) mypy --config-file ../../../pyproject.toml src/

check: test lint typecheck

build:
uv build
Expand Down
Loading