-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 951 Bytes
/
Makefile
File metadata and controls
49 lines (38 loc) · 951 Bytes
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
.PHONY: run test lint clean install dev setup
PYTHON = python3
PIP = pip3
# Run the application
run:
$(PYTHON) -m neo_code
# Install dependencies
install:
$(PIP) install -r requirements.txt
# Install dev dependencies
dev:
$(PIP) install -r requirements-dev.txt
$(PIP) install -e .
# Setup complete development environment
setup: dev
@echo "Development environment ready!"
# Run tests
test:
$(PYTHON) -m pytest tests/ -v --tb=short
# Run tests with coverage
test-cov:
$(PYTHON) -m pytest tests/ -v --cov=src/neo_code --cov-report=html
# Lint code
lint:
$(PYTHON) -m ruff check src/ tests/
$(PYTHON) -m mypy src/neo_code/
# Format code
format:
$(PYTHON) -m ruff format src/ tests/
# Clean build artifacts
clean:
rm -rf build/ dist/ *.egg-info
rm -rf .pytest_cache .mypy_cache .ruff_cache
rm -rf htmlcov/ .coverage
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
# Build package
build:
$(PYTHON) -m build