-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (19 loc) · 1.56 KB
/
Copy pathMakefile
File metadata and controls
31 lines (19 loc) · 1.56 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
.PHONY: lint lint-py lint-js typecheck format check all
# ── Atajos principales ────────────────────────────────────────────────────────
all: check ## Ejecuta lint + typecheck completo
check: lint typecheck ## Lint + typecheck (sin modificar ficheros)
# ── Python (ruff + mypy) ──────────────────────────────────────────────────────
lint-py: ## Lint Python con ruff
ruff check .
typecheck: ## Typecheck Python con mypy
mypy config/ shared/ scraper/ docker/dashboard/api/ docker/scraper/
format: ## Formatear Python con ruff (modifica ficheros)
ruff format .
ruff check --fix .
# ── JavaScript (eslint) ──────────────────────────────────────────────────────
lint-js: ## Lint JavaScript con eslint
cd docker/dashboard && npx eslint frontend/ server.js
# ── Combinados ───────────────────────────────────────────────────────────────
lint: lint-py lint-js ## Lint completo (Python + JavaScript)
help: ## Muestra esta ayuda
@grep -E '^[a-zA-Z_-]+:.*##' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'