-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (41 loc) · 1.25 KB
/
Makefile
File metadata and controls
54 lines (41 loc) · 1.25 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
51
52
53
54
# Makefile for YAFT project
.PHONY: help venv install install-dev test lint format clean build run
help:
@echo "YAFT - Yet Another Forensic Tool"
@echo ""
@echo "Available targets:"
@echo " venv Create virtual environment with uv"
@echo " install Install production dependencies with uv"
@echo " install-dev Install development dependencies with uv"
@echo " test Run tests with coverage"
@echo " lint Run linting checks"
@echo " format Format code with ruff"
@echo " typecheck Run type checking with mypy"
@echo " clean Clean build artifacts and cache"
@echo " build Build executable for current platform"
@echo " build-clean Clean build and rebuild executable"
@echo " run Run the application from source"
venv:
uv venv
install:
uv pip install -r requirements.txt
install-dev:
uv pip install -e ".[dev]"
test:
pytest
lint:
ruff check src/ tests/ plugins/
format:
ruff format src/ tests/ plugins/
typecheck:
mypy src/
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
build:
python build.py
build-clean:
python build.py --clean
run:
python -m yaft.cli