Copilot instructions
.github/instructions/python.instructions.mdCopilot instructions
Quality
85/100
Scores the file, not the repository.Length
300 words
19 headings · 7 code blocksRepository
19
— · pushed 151 days agoLast changed
3 days ago
First indexed 3 days ago.12345# Python Coding Style67> This file extends [common/coding-style.md](../common/coding-style.md) with Python specific content.89## Standards1011- Follow **PEP 8** conventions12- Use **type annotations** on all function signatures1314## Immutability1516Prefer immutable data structures:1718```python19from dataclasses import dataclass2021@dataclass(frozen=True)22class User:23 name: str24 email: str2526from typing import NamedTuple2728class Point(NamedTuple):29 x: float30 y: float31```3233## Formatting3435- **black** for code formatting36- **isort** for import sorting37- **ruff** for linting3839## Reference4041See skill: `python-patterns` for comprehensive Python idioms and patterns.424344# Python Patterns4546> This file extends [common/patterns.md](../common/patterns.md) with Python specific content.4748## Protocol (Duck Typing)4950```python51from typing import Protocol5253class Repository(Protocol):54 def find_by_id(self, id: str) -> dict | None: ...55 def save(self, entity: dict) -> dict: ...56```5758## Dataclasses as DTOs5960```python61from dataclasses import dataclass6263@dataclass64class CreateUserRequest:65 name: str66 email: str67 age: int | None = None68```6970## Context Managers & Generators7172- Use context managers (`with` statement) for resource management73- Use generators for lazy evaluation and memory-efficient iteration7475## Reference7677See skill: `python-patterns` for comprehensive patterns including decorators, concurrency, and package organization.787980# Python Security8182> This file extends [common/security.md](../common/security.md) with Python specific content.8384## Secret Management8586```python87import os88from dotenv import load_dotenv8990load_dotenv()9192api_key = os.environ["OPENAI_API_KEY"] # Raises KeyError if missing93```9495## Security Scanning9697- Use **bandit** for static security analysis:98```bash99 bandit -r src/100```101102## Reference103104See skill: `django-security` for Django-specific security guidelines (if applicable).105106107# Python Testing108109> This file extends [common/testing.md](../common/testing.md) with Python specific content.110111## Framework112113Use **pytest** as the testing framework.114115## Coverage116117```bash118pytest --cov=src --cov-report=term-missing119```120121## Test Organization122123Use `pytest.mark` for test categorization:124125```python126import pytest127128@pytest.mark.unit129def test_calculate_total():130 ...131132@pytest.mark.integration133def test_database_connection():134 ...135```136137## Reference138139See skill: `python-testing` for detailed pytest patterns and fixtures.
Also in j7-dev/everything-github-copilot
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| j7-dev/everything-github-copilot.codex/AGENTS.md · 19 | AGENTS.md | securityagent-behaviour | 59/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/instructions/swift.instructions.md · 19 | Copilot instructions | testlint-formatstyletypes+2 | 81/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/instructions/typescript.instructions.md · 19 | Copilot instructions | testlint-formatstyletypes+4 | 62/100 | 3 days ago | |
| j7-dev/everything-github-copilotAGENTS.md · 19 | AGENTS.md | buildteststylearch+4 | 77/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/copilot-instructions.md · 19 | Copilot instructions | buildtestlint-formatstyle+6 | 76/100 | 3 days ago | |
| j7-dev/everything-github-copilot.github/instructions/go.instructions.md · 19 | Copilot instructions | testlint-formatstyletesting-strategy+1 | 77/100 | 3 days ago | |
| j7-dev/everything-github-copilotCLAUDE.md · 19 | CLAUDE.md | testarchagent-behaviour | 81/100 | 3 days ago | |
| j7-dev/everything-github-copilotskills/react-best-practices/AGENTS.md · 19 | AGENTS.md | buildlint-formatstylearch+8 | 64/100 | 3 days ago |
Diff against .codex/AGENTS.md Diff against .github/instructions/swift.instructions.md Diff against .github/instructions/typescript.instructions.md Diff against AGENTS.md Diff against .github/copilot-instructions.md Diff against .github/instructions/go.instructions.md Diff against CLAUDE.md Diff against skills/react-best-practices/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 63 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 3 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 3 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 31k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 2 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 3 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 24 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 3 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 3 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 3 days ago |
