mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-06-12 03:03:23 +08:00
Adds a complete Spanish translation of the ECC documentation under docs/es/, mirroring the Turkish (docs/tr/) translation in scope. 141 files covering agents, commands, rules, skills, contexts, examples, and core docs. Updates root README.md with the Spanish language link. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
774 B
Markdown
43 lines
774 B
Markdown
---
|
|
paths:
|
|
- "**/*.py"
|
|
- "**/*.pyi"
|
|
---
|
|
# Estilo de Código en Python
|
|
|
|
> Este archivo extiende [common/coding-style.md](../common/coding-style.md) con contenido específico de Python.
|
|
|
|
## Estándares
|
|
|
|
- Seguir las convenciones de **PEP 8**
|
|
- Usar **anotaciones de tipos** en todas las firmas de funciones
|
|
|
|
## Inmutabilidad
|
|
|
|
Preferir estructuras de datos inmutables:
|
|
|
|
```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
|
|
```
|
|
|
|
## Formateo
|
|
|
|
- **black** para formateo de código
|
|
- **isort** para ordenamiento de imports
|
|
- **ruff** para linting
|
|
|
|
## Referencia
|
|
|
|
Ver skill: `python-patterns` para idiomas y patrones completos de Python.
|