-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (41 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
50 lines (41 loc) · 1.11 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
.PHONY: help install install-dev test test-cov clean lint format sort-imports
# Default target
help:
@echo "Available targets:"
@echo " install - Install production dependencies"
@echo " install-dev - Install development and test dependencies"
@echo " test - Run tests"
@echo " test-cov - Run tests with coverage report"
@echo " lint - Run linting (flake8)"
@echo " format - Format code (black)"
@echo " sort-imports - Sort imports (isort)"
@echo " clean - Clean up build artifacts"
# Install production dependencies
install:
pip install -e .
# Install development dependencies
install-dev:
pip install -e .[dev]
# Run tests
test:
pytest tests/ -v
# Run tests with coverage
test-cov:
pytest tests/ --cov=kini --cov-report=term-missing --cov-report=html
# Run linting
lint:
flake8 kini tests
# Format code
format:
black kini tests
# Sort imports
sort-imports:
isort kini tests
# Clean build artifacts
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf htmlcov/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete