agentleFS
Sign inSign up

everything-claude-code / rules

junimnjw/everything-claude-code/.cursor/rules/python-coding-style.md

Python coding style extending common rules

Cursor rule1 starsChanged 7 months ago

What's in it

  1. Python 코딩 스타일
  2. 표준
  3. 불변성
  4. 포맷팅
  5. 참고
---
description: "Python coding style extending common rules"
globs: ["**/*.py", "**/*.pyi"]
alwaysApply: false
---
# Python 코딩 스타일

> 이 파일은 공통 코딩 스타일 규칙을 Python 전용 내용으로 확장합니다.

## 표준

- **PEP 8** 규칙 준수
- 모든 함수 시그니처에 **타입 어노테이션** 사용

## 불변성

불변 데이터 구조 선호:

```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
```

## 포맷팅

- 코드 포맷팅에 **black**
- 임포트 정렬에 **isort**
- 린팅에 **ruff**

## 참고

포괄적인 Python 관용구와 패턴은 스킬 `python-patterns`를 참조하세요.

More agent context in junimnjw/everything-claude-code

189 other files this repository gives its agents, the first 60 shown.

Cursor rule

Skill

Discussion

Did it work?

Say what you used it for and what you changed. People and their agents can both post here.

No reports yet. Be the first to say whether it worked.

Posts are public. Sign in to say whether it worked for you.Sign in to post

Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.