chezmoi-source (чистая пересборка, не дамп 1.2 ГБ): - dot_claude: CLAUDE.md лин-роутер, AGENTS.md.tmpl (VPS вычищен), settings.json.tmpl (deny-щит 20 + security-guard hook), rules (structure + ECC 21 язык), 30 generic ECC-агентов, health-check - dot_codex: symlink-паритет; dot_agents: registry 13 скриптов HOME-генерик + методология docs - плагины: plugins.manifest + bootstrap Слой 1b (marketplace+install) - launchd: health.plist (PATH-фикс 127) + session-reaper.example - smoke++: secret-токен guard + канон-проверки (зелёный) - 0 hard личных данных; cut личного (kb/references/gsd/owner) → Ф4
43 lines
711 B
Markdown
43 lines
711 B
Markdown
---
|
|
paths:
|
|
- "**/*.py"
|
|
- "**/*.pyi"
|
|
---
|
|
# Python Coding Style
|
|
|
|
> This file extends [common/coding-style.md](../common/coding-style.md) with Python specific content.
|
|
|
|
## Standards
|
|
|
|
- Follow **PEP 8** conventions
|
|
- Use **type annotations** on all function signatures
|
|
|
|
## Immutability
|
|
|
|
Prefer immutable data structures:
|
|
|
|
```python
|
|
from dataclasses import dataclass
|
|
|
|
@dataclass(frozen=True)
|
|
class User:
|
|
name: str
|
|
email: str
|
|
|
|
from typing import NamedTuple
|
|
|
|
class Point(NamedTuple):
|
|
x: float
|
|
y: float
|
|
```
|
|
|
|
## Formatting
|
|
|
|
- **black** for code formatting
|
|
- **isort** for import sorting
|
|
- **ruff** for linting
|
|
|
|
## Reference
|
|
|
|
See skill: `python-patterns` for comprehensive Python idioms and patterns.
|