[Makefile] lint and format

This commit is contained in:
2026-08-09 05:01:59 +02:00
parent db0169f34b
commit d53aa42ecc
2 changed files with 17 additions and 3 deletions
+8
View File
@@ -0,0 +1,8 @@
[tool.black]
line-length = 88
target-version = ['py312']
[tool.flake8]
max-line-length = 88
extend-ignore = "E203"
exclude = ".venv"
+9 -3
View File
@@ -1,11 +1,11 @@
.PHONY: build events dev stop help prep .PHONY: build events dev stop help prep lint format
help: help:
@echo "Available commands:" @echo "Available commands:"
@echo " make prep - Create venv and install requirements" @echo " make prep - Create venv and install requirements"
@echo " make events - Update site from CSV (build pages + images)" @echo " make events - Update site from CSV (build pages + images)"
@echo " make dev - Start development server" @echo " make dev - Start development server (might need sudo)"
@echo " make stop - Stop development server" @echo " make stop - Stop development server (might need sudo)"
@echo " make build - Full website build sequence" @echo " make build - Full website build sequence"
@echo " make help - Show this help message" @echo " make help - Show this help message"
@@ -28,3 +28,9 @@ dev:
stop: stop:
nginx -p . -s stop nginx -p . -s stop
lint:
./.venv/bin/flake8 . --config .flake8 --exclude .venv
format:
./.venv/bin/black .