Skip to content

Commit 3902581

Browse files
authored
PYTHON-5768 Update Copilot instructions with new guidelines
Added guidelines for security, performance, documentation, and review style.
1 parent 08b806f commit 3902581

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/copilot-instructions.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1-
Please see [AGENTS.md](../AGENTS.md).
1+
Follow these rules in this repo (summary). Full details: see `AGENTS.md` in the repository root.
22

3-
Follow the repository instructions defined in `AGENTS.md` when working in this codebase.
3+
- Security: never introduce hardcoded secrets; avoid injection/dynamic execution hazards.
4+
- Performance: watch for inefficient loops and resource leaks; clean up resources.
5+
- Docs/API: public classes/modules/methods must have Sphinx docs.
6+
- PyMongo synchro rule: do not edit `pymongo/synchronous` (or sync test twins) unless the change includes `_IS_SYNC`; those files are generated via `tools/synchro.py`.
7+
- Async: async functions must not call blocking I/O.
8+
- Review style: be specific/actionable; explain “why”; ask clarifying questions when unclear.

0 commit comments

Comments
 (0)