RuleMembers

pdoc Best Practices

pdoc Best Practices is a rule file for Cursor, from the Cursor rules (mdc) collection by sanjeed5. The full text is about 904 words in 8 sections, with 11 code blocks. A rule file tells the editor's AI how code in this stack should be written, so its suggestions follow the same conventions.

It is most useful for people working in Backend and Documentation who use Cursor.

What it covers

  • 1. Docstrings: The Foundation Google Style
  • Mandatory Docstring Sections:
  • 2. Type Hints: pdoc's Superpower
  • 3. Module and Package Docstrings
  • 4. all for Explicit API Exposure
  • 5. Inline Comments vs. Docstrings
  • 6. Automate Documentation Generation CI/CD
  • 7. Test Docstring Examples with doctest

The full text is in the members library

Book a call and we will give you access to the full Cursor library: every entry in full, search by meaning, copy and download.

Source: https://github.com/sanjeed5/awesome-cursor-rules-mdc/blob/main/rules-mdc/pdoc.mdc

Author: sanjeed5, Cursor rules (mdc). License: CC0-1.0.

Related entries