Repository navigation
gazelle/python: generate ruff_config and aspect_hints from the nearest ruff config (closes #6155) - #6417
Merged
Conversation
…t ruff config; dx init writes an empty ruff.toml (closes #6155) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011u9TXHDZrfmzFQ2WT8QAKK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6155
.ruff.toml,ruff.toml, thenpyproject.tomlwith[tool.ruff]), emitsruff_configthere and adds its label to each generated rule'saspect_hints, keeping user entries.dx initwrites an empty rootruff.tomlwhen Python sources exist and no ruff config is found (owner decision on gazelle: generated libraries are public unless the package sets default_visibility #6141).ruff_pyprojectandpyproject_no_ruff.Tests:
//gazelle/python:generation_testandpython_testpass. Not moving the hint merge into common (small local merge instead). Unrelated red on main://cli/adopt:dx_adopt_testoverrides table,//gazelle/dispatch:dispatch_testconformance loads for other languages. No nested-Bazel tests run.Assisted by Claude.
🤖 Generated with Claude Code
https://claude.ai/code/session_011u9TXHDZrfmzFQ2WT8QAKK