-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 1.17 KB
/
Makefile
File metadata and controls
39 lines (31 loc) · 1.17 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
.PHONY: help lint format test install clean all
help:
@echo "Available targets:"
@echo " make install - Install dependencies"
@echo " make dev - Install development dependencies"
@echo " make format - Format code with black"
@echo " make lint - Run linters (flake8, mypy)"
@echo " make test - Run tests with pytest"
@echo " make all - Run format, lint, and test"
@echo " make clean - Remove Python cache files"
# Install development dependencies
dev:
pip install -e ".[dev]"
# Install production dependencies
install:
pip install -r requirements.txt
format:
black linux_mcp_agent/ tests/
lint:
flake8 linux_mcp_agent/ tests/ --max-line-length=100 --extend-ignore=E501
mypy linux_mcp_agent/ --ignore-missing-imports
test:
pytest tests/ -v
all: format lint test
clean:
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".mypy_cache" -exec rm -rf {} + 2>/dev/null || true