[config] Extra insctruction for LLM: no markdown in docstring#3411
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the repository’s Copilot guidance to reduce confusing docstring formatting artifacts when Copilot generates Python code and documentation.
Changes:
- Refines the docstring style instruction to add an additional restriction around markup usage.
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe pull request updates the AI instruction guidance in Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/copilot-instructions.md:
- Around line 3-4: The phrase "without the type information and without using
markdown markers" in the instruction "Include docstrings for all functions and
classes, following the reStructuredText style guide, but without the type
information and without using markdown markers" is ambiguous; update the
instruction to explicitly state which inline formatting is forbidden (either "no
inline code formatting at all (no backticks of any kind)" or "no
reStructuredText inline-literal syntax (no double backticks) while allowing
plain backticks for other tooling") and give a short example for the chosen rule
so contributors know whether to avoid ``True``/``False`` (double backticks) or
`True`/`False` (single backtick) in docstrings; reference the existing
instruction string as the target to edit so reviewers can find and change it.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d91c7ca1-2cf0-4ba9-838b-f9d5760c03bc
📒 Files selected for processing (1)
.github/copilot-instructions.md
It tends to write ``True`` and ``False`` in docstring, but as we don't look at docstring after markdown processing, that's more confusing than helpful.
ca84c76 to
404df66
Compare
It tends to write
TrueandFalsein docstring, but as we don'tlook at docstring after markdown processing, that's more confusing than
helpful.