docs: BSN Coding Standards als bindende Regel im IT-Hilfe-Bauplan verankert
Quality Gate / 🛡️ Lint + Type Check + Tests (push) Failing after 14m13s
Quality Gate / 🛡️ Lint + Type Check + Tests (push) Failing after 14m13s
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
> **Framework:** Flask + Inline-CSS (wie BSN-Chatsystem)
|
> **Framework:** Flask + Inline-CSS (wie BSN-Chatsystem)
|
||||||
> **Design-System:** `BSN-Blau #20228a`, Off-White `#F9FAFB`, System-Fonts, Mobile-First
|
> **Design-System:** `BSN-Blau #20228a`, Off-White `#F9FAFB`, System-Fonts, Mobile-First
|
||||||
> **Stil:** Seriös + agil — KEINE Icons/Emojis, klare Typografie, viel Weißraum, reduzierte Farbpalette
|
> **Stil:** Seriös + agil — KEINE Icons/Emojis, klare Typografie, viel Weißraum, reduzierte Farbpalette
|
||||||
|
> **Coding:** BSN Coding Standards BINDEND — Typ-Annotationen (PEP 604), deutsche Docstrings, Ruff+Mypy+Pytest
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -343,9 +344,17 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
## ✅ Qualitäts-Checks (vor JEDEM Commit)
|
## ✅ Qualitäts-Checks (vor JEDEM Commit)
|
||||||
|
|
||||||
|
**BSN Coding Standards sind BINDEND.** Alicia muss den Skill `bsn-coding-standards` laden und einhalten:
|
||||||
|
|
||||||
|
- **Typ-Annotationen:** Jede Funktion mit `X | None` (PEP 604), `-> None` explizit
|
||||||
|
- **Docstrings:** Deutsch, Google-Style (Args, Returns, Raises)
|
||||||
|
- **Keine Secrets** im Code (API-Keys via `.env`)
|
||||||
|
- **Max 50 Statements/Funktion** (Ruff PLR0915)
|
||||||
|
- **McCabe ≤ 10** (Ruff C901)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
ruff check app.py --fix && ruff format app.py
|
# Vor JEDEM Commit:
|
||||||
python3 -c "from app import app; client=app.test_client(); assert client.get('/').status_code==200"
|
ruff check . --fix && ruff format . && python3 -c "from app import app; client=app.test_client(); assert client.get('/').status_code==200"
|
||||||
```
|
```
|
||||||
|
|
||||||
- **Conventional Commits:** `feat(blog):` / `feat(leistungen):` / `fix(css):`
|
- **Conventional Commits:** `feat(blog):` / `feat(leistungen):` / `fix(css):`
|
||||||
|
|||||||
Reference in New Issue
Block a user