[Gobal] added flake8 and did format

This commit is contained in:
coja
2026-05-04 10:33:09 +02:00
parent 732640cf90
commit aa26a3675e
13 changed files with 308 additions and 150 deletions

15
AGENTS.md Normal file
View File

@@ -0,0 +1,15 @@
# AGENTS.md
## Core Workflow
- **Setup**: `make prep` (creates `.venv` and installs `requirements.txt`)
- **Build**: `make build` (runs `atom_gen.py`, `prep.py`, and `build_pages.py`)
- **Events**: Update `dogadjaji.csv` then run `make events` (updates pages and generates images via `image_poster.py`)
- **Development**: `make dev` (starts Nginx using `nginx.dev.conf`) and `make stop` to terminate.
## Technical Details
- **Environment**: Uses a local virtual environment in `.venv`. Always use `./.venv/bin/python` or ensure the venv is activated.
- **Output**: The generated website is stored in the `site/` directory.
- **Data**: Events are driven by `dogadjaji.csv`.
- **Web Server**: Uses Nginx for the development server.