-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 1.03 KB
/
Makefile
File metadata and controls
46 lines (35 loc) · 1.03 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
# Makefile
.PHONY: help install dev test clean format lint docs run
help:
@echo "Commands disponibili:"
@echo " install : Installa dipendenze"
@echo " dev : Installa in modalità sviluppo"
@echo " test : Esegui test"
@echo " clean : Pulisci file temporanei"
@echo " format : Formatta codice con black"
@echo " lint : Controlla stile con flake8"
@echo " run-example : Esegui esempio 01"
install:
pip install -r requirements.txt
dev:
pip install -e .
test:
pytest tests/ -v --cov=src
clean:
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
find . -type d -name ".pytest_cache" -exec rm -rf {} +
find . -type d -name ".coverage" -exec rm -rf {} +
format:
black src/ tests/ examples/
lint:
flake8 src/ tests/ examples/
docs:
@echo "Genera documentazione..."
# Aggiungi comandi per Sphinx qui
run-example:
python examples/01_ecommerce_customer.py
docker-build:
docker build -t ecommerce-cleaner .
docker-run:
docker run -it --rm ecommerce-cleaner