Copilot instructions
.github/instructions/python.instructions.mdPython specific coding instructions for production code.
Copilot instructions
Quality
67/100
Scores the file, not the repository.Length
189 words
6 headings · 0 code blocksRepository
14
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Python Instructions78> Auto-loads when editing Python files. For comprehensive standards, load the skill.910**Skill**: [.github/skills/languages/python/SKILL.md](../skills/languages/python/SKILL.md)1112## Key Rules1314- Follow PEP 8 style guide15- Use type hints for all function signatures (PEP 484)16- Maximum line length: 88 characters (Black formatter)17- Use `ruff` for linting and formatting18- Google style docstrings19- Catch specific exceptions, never bare `except:`20- pytest for testing, pytest-asyncio for async21- Name tests: `test_function_name_scenario_expected`2223## Critical Rules (Embedded -- Always Active)2425### Security26- Validate/sanitize ALL inputs at API boundaries27- Parameterize SQL via ORM or `cursor.execute(sql, params)` -- NEVER f-strings or `.format()`28- Secrets in env vars (`os.environ`) or Key Vault -- NEVER hardcode29- Use `secrets.compare_digest()` for constant-time comparisons3031### Testing32- 80%+ code coverage required (`pytest --cov`)33- Pyramid: 70% unit, 20% integration, 10% e2e34- AAA pattern (Arrange-Act-Assert) in every test35- No bare `assert True` -- assert specific values3637### Error Handling38- Catch specific exceptions (`ValueError`, `KeyError`, etc.)39- Log with context: `logger.error("msg", extra={"agent": ..., "issue": ...})`40- Retry transient failures with exponential backoff (`tenacity`)41- Fail fast on invalid input at module boundaries4243
Also in jnPiyush/AgentX
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 |
|---|---|---|---|---|---|
| jnPiyush/AgentXvscode-extension/.github/AGENTS.md · 14 | AGENTS.md | lint-formatstylegitsecurity+2 | 69/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/000-agentx-core.mdc · 14 | Cursor rules | styleapido-notagent-behaviour | 55/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/ai.mdc · 14 | Cursor rules | no sections | 16/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/csharp.mdc · 14 | Cursor rules | no sections | 16/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/python.mdc · 14 | Cursor rules | testlint-format | 32/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/react.mdc · 14 | Cursor rules | no sections | 16/100 | 3 days ago | |
| jnPiyush/AgentX.cursor/rules/typescript.mdc · 14 | Cursor rules | types | 16/100 | 3 days ago | |
| jnPiyush/AgentX.github/copilot-instructions.md · 14 | Copilot instructions | stylegitdo-notagent-behaviour | 67/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/ai.instructions.md · 14 | Copilot instructions | testing-strategydo-notagent-behaviour | 50/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/csharp.instructions.md · 14 | Copilot instructions | teststylesecuritydo-not+1 | 59/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/memory.instructions.md · 14 | Copilot instructions | lint-formatperformance | 54/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/project-conventions.instructions.md · 14 | Copilot instructions | styledo-not | 50/100 | today | |
| jnPiyush/AgentX.github/instructions/react.instructions.md · 14 | Copilot instructions | testtypessecuritydo-not+1 | 63/100 | 3 days ago | |
| jnPiyush/AgentX.github/instructions/typescript.instructions.md · 14 | Copilot instructions | setuptestlint-formatstyle+5 | 92/100 | 3 days ago | |
| jnPiyush/AgentXAGENTS.md · 14 | AGENTS.md | lint-formatstylegitsecurity+2 | 69/100 | 3 days ago | |
| jnPiyush/AgentXCLAUDE.md · 14 | CLAUDE.md | lint-formatstylegitsecurity+2 | 81/100 | 3 days ago |
Diff against vscode-extension/.github/AGENTS.md Diff against .cursor/rules/000-agentx-core.mdc Diff against .cursor/rules/ai.mdc Diff against .cursor/rules/csharp.mdc Diff against .cursor/rules/python.mdc Diff against .cursor/rules/react.mdc Diff against .cursor/rules/typescript.mdc Diff against .github/copilot-instructions.md Diff against .github/instructions/ai.instructions.md Diff against .github/instructions/csharp.instructions.md Diff against .github/instructions/memory.instructions.md Diff against .github/instructions/project-conventions.instructions.md Diff against .github/instructions/react.instructions.md Diff against .github/instructions/typescript.instructions.md Diff against AGENTS.md Diff against CLAUDE.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 | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 3 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 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 |
