-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (46 loc) · 1.14 KB
/
Makefile
File metadata and controls
57 lines (46 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Makefile for Project Automation
.PHONY: install lint test build all clean security-scan format
# Variables
PACKAGE_NAME = agents
TEST_DIR = tests
# Default target
all: lint test
# Install project dependencies
install:
uv sync
# Linting and Formatting Checks
lint:
uv run ruff check $(PACKAGE_NAME) $(TEST_DIR)
uv run black --check $(PACKAGE_NAME) $(TEST_DIR)
uv run isort --check-only $(PACKAGE_NAME) $(TEST_DIR)
# Run Tests with Coverage
test:
uv run pytest --cov=$(PACKAGE_NAME) --cov-report=xml $(TEST_DIR)/
# Run Pre-Commit Hooks
pre-commit:
uv run pre-commit run --all-files
# Format Code (auto-fix)
format:
uv run black $(PACKAGE_NAME) $(TEST_DIR)
uv run isort $(PACKAGE_NAME) $(TEST_DIR)
uv run ruff check --fix $(PACKAGE_NAME) $(TEST_DIR)
# Security Scanning
security-scan:
uv run bandit -r $(PACKAGE_NAME)/
# Clean Up Generated Files
clean:
rm -rf dist/
rm -rf build/
rm -rf *.egg-info
rm -rf htmlcov/
rm -rf .mypy_cache/
rm -rf .pytest_cache/
rm -rf .ruff_cache/
rm -rf .langgraph_api/
rm -rf .coverage*
rm -rf *.coverage.*
rm -rf coverage.xml
rm -rf evaluation_config__*.json
# Build the Package
build:
uv run build