Files
omnara-agent-monitor/Makefile
Kartik Sarangmath 912b8e0472 reduces deps
2025-07-09 14:03:38 -07:00

60 lines
1.1 KiB
Makefile

.PHONY: install lint format typecheck dev-install pre-commit-install pre-commit-run
# Install production dependencies
install:
pip install -r backend/requirements.txt
pip install -r servers/requirements.txt
# Install development dependencies
dev-install: install
pip install -r requirements-dev.txt
# Install pre-commit hooks
pre-commit-install: dev-install
pre-commit install
# Run pre-commit on all files
pre-commit-run:
pre-commit run --all-files
# Run all linting and type checking
lint:
./scripts/lint.sh
# Auto-format code
format:
./scripts/format.sh
# Run only type checking
typecheck:
pyright
# Run only ruff linting
ruff-check:
ruff check .
# Run only ruff formatting check
ruff-format-check:
ruff format --check .
# Run all tests
test:
pytest
# Run unit tests only (skip integration)
test-unit:
pytest -m "not integration"
# Run integration tests only
test-integration:
pytest -m integration
# Run tests with coverage
test-coverage:
pytest --cov=backend --cov=servers --cov=omnara --cov=shared --cov-report=term-missing
# Run specific test file or pattern
# Usage: make test-k ARGS="test_auth"
test-k:
pytest -k "$(ARGS)"