-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 1.08 KB
/
Makefile
File metadata and controls
38 lines (30 loc) · 1.08 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
.PHONY: help install etl test sync security clean all
help:
@echo "Tech Trends 2025 - Comandos"
@echo ""
@echo " make install Instalar dependencias"
@echo " make etl Ejecutar pipeline ETL"
@echo " make test Ejecutar tests"
@echo " make security Auditar vulnerabilidades de dependencias"
@echo " make sync Sincronizar CSVs al frontend"
@echo " make all Pipeline completo (install + etl + sync)"
@echo " make clean Limpiar temporales"
install:
pip install -r backend/requirements.txt
all: install etl sync
etl:
python backend/github_etl.py
python backend/stackoverflow_etl.py
python backend/reddit_etl.py
python backend/trend_score.py
test:
python -m pytest tests/ -v
security:
pip install --upgrade pip pip-audit
pip-audit -r backend/requirements.txt
sync:
python backend/sync_assets.py
clean:
@echo "Limpiando..."
@python -c "from pathlib import Path; import shutil; paths=[Path('__pycache__'), Path('.pytest_cache'), Path('backend/__pycache__'), Path('tests/__pycache__')]; [shutil.rmtree(p, ignore_errors=True) for p in paths]"
@echo "Listo."