23 lines
515 B
Makefile
23 lines
515 B
Makefile
.PHONY: test lint fmt check
|
|
|
|
test:
|
|
bash tests/run.sh
|
|
|
|
lint:
|
|
@if command -v ruff >/dev/null 2>&1; then \
|
|
ruff check . scripts/bootstrap-node; \
|
|
else \
|
|
python3 -m compileall -q engine actions tests ci/scripts scripts && \
|
|
python3 -m py_compile scripts/bootstrap-node && \
|
|
echo "ruff not installed in PATH; verified python bytecode compilation."; \
|
|
fi
|
|
|
|
fmt:
|
|
@if command -v ruff >/dev/null 2>&1; then \
|
|
ruff format .; \
|
|
else \
|
|
echo "ruff not installed in PATH; skipping fmt."; \
|
|
fi
|
|
|
|
check: lint test
|