File size: 1,254 Bytes
d10d3ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73accd1
d10d3ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73accd1
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
.PHONY: help install lint format check test coverage clean pre-commit

help:
	@echo "Available targets:"
	@echo "  install     - Install all dependencies"
	@echo "  lint        - Run ruff linter"
	@echo "  format      - Run ruff formatter"
	@echo "  check       - Run all checks (lint, format, type, security)"
	@echo "  test        - Run tests"
	@echo "  coverage    - Run tests with coverage"
	@echo "  clean       - Clean up temporary files"
	@echo "  pre-commit  - Run pre-commit hooks"

install:
	uv pip install -r requirements.txt

lint:
	uv run ruff check .

format:
	uv run ruff format .

format-check:
	uv run ruff format --check .

type-check:
	uv run mypy . || true

security:
	uv run bandit -r . -f json -o bandit-report.json || true

check: lint format-check type-check security pre-commit
	@echo "All checks completed"

test:
	uv run pytest tests/ -v

coverage:
	uv run pytest tests/ --cov=domains --cov=ui --cov-report=html --cov-report=term

pre-commit:
	uv run pre-commit run --all-files

pre-commit-install:
	uv run pre-commit install

clean:
	rm -rf .pytest_cache
	rm -rf htmlcov
	rm -rf .coverage
	rm -rf bandit-report.json
	rm -rf .mypy_cache
	find . -type d -name __pycache__ -exec rm -rf {} +
	find . -type f -name "*.pyc" -delete