-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Make gemini ignore Lib/**
#5903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
Caution Review failedThe pull request is closed. WalkthroughA new configuration file Changes
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yml 📒 Files selected for processing (1)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.gemini/config.yaml (1)
1-2
: Consider also ignoring the generatedpylib/**
directory.Long-term project guidance states that
pylib/**
is auto-generated and should not be hand-edited. Adding it here would future-proof Gemini behaviour and avoid accidental review noise.ignore_patterns: - "Lib/**" + - "pylib/**"
📜 Review details
Configuration used: .coderabbit.yml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.gemini/config.yaml
(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/**/*.py : Minimize modifications to CPython standard library files in the `Lib/` directory
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to pylib/** : Do not modify the `pylib/` directory directly - its contents are generated automatically
.gemini/config.yaml (2)
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to Lib/**/*.py : Minimize modifications to CPython standard library files in the `Lib/` directory
Learnt from: CR
PR: RustPython/RustPython#0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-06-30T10:08:48.851Z
Learning: Applies to pylib/** : Do not modify the `pylib/` directory directly - its contents are generated automatically
⏰ Context from checks skipped due to timeout of 90000ms (10)
- GitHub Check: Check the WASM package and demo
- GitHub Check: Run snippets and cpython tests on wasm-wasi
- GitHub Check: Run snippets and cpython tests (ubuntu-latest)
- GitHub Check: Run rust tests (macos-latest)
- GitHub Check: Run snippets and cpython tests (windows-latest)
- GitHub Check: Run snippets and cpython tests (macos-latest)
- GitHub Check: Run rust tests (windows-latest)
- GitHub Check: Check Rust code with rustfmt and clippy
- GitHub Check: Run rust tests (ubuntu-latest)
- GitHub Check: Ensure compilation on various targets
🔇 Additional comments (1)
.gemini/config.yaml (1)
1-2
: Config path & syntax look correct.
.gemini/config.yaml
is the expected location and the YAML structure matches the public docs, so Gemini should pick this up without problems.
@coderabbitai can you please add your nitpick comment to this branch? |
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chainI'll examine the configuration file to provide you with thorough feedback. After examining the configuration file, I can see it's a simple YAML file with an ignore pattern for @ShaharNaveh The configuration looks good overall and aligns well with the retrieved learnings about minimizing modifications to CPython standard library files in the Nitpick Comments:
Here's a suggested improvement: # Gemini Code Assist configuration
# Ignore CPython standard library files to prevent modifications
ignore_patterns:
- "Lib/**" The configuration effectively addresses the need to prevent Gemini from suggesting modifications to CPython standard library files, which aligns perfectly with the project's guidelines about minimizing changes to the
🏁 Script executed:
Length of output: 55 @ShaharNaveh Here are my nitpick comments on the Nitpick Comments:
Suggested improvement: # Gemini Code Assist configuration
# Ignore CPython standard library files in Lib/ directory to prevent unwanted modifications
# as these should remain synchronized with upstream CPython
ignore_patterns:
- "Lib/**" Positive aspects:
The configuration effectively achieves its goal of preventing Gemini from suggesting changes to CPython standard library files, which is exactly what you want based on the retrieved learnings about the
🧠 Learnings used
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, let's try
https://developers.google.com/gemini-code-assist/docs/customize-gemini-behavior-github#custom-configuration
Hopefully this works
Summary by CodeRabbit