-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (32 loc) · 1.01 KB
/
Copy pathMakefile
File metadata and controls
43 lines (32 loc) · 1.01 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
.PHONY: help install test format lint type-check quality clean pre-commit
help:
@echo "Available commands:"
@echo " make install - Install project with dev dependencies"
@echo " make test - Run tests with coverage"
@echo " make format - Format code with black"
@echo " make lint - Lint code with ruff"
@echo " make type-check - Type check with pyright"
@echo " make quality - Run all quality checks"
@echo " make pre-commit - Install pre-commit hooks"
@echo " make clean - Clean build artifacts"
install:
pip install -e ".[dev]"
test:
pytest --cov=src/ai_project --cov-report=html
test-unit:
pytest -m unit
test-integration:
pytest -m integration
format:
black src tests
lint:
ruff check src tests --fix
type-check:
pyright src
quality: format lint type-check test
pre-commit:
pre-commit install
clean:
rm -rf build dist *.egg-info .pytest_cache .coverage htmlcov
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name '*.pyc' -delete