chore(lint): enable A003 rule (no builtin shadowing in classes)#1055
chore(lint): enable A003 rule (no builtin shadowing in classes)#1055Aaron ("AJ") Steers (aaronsteers) wants to merge 1 commit into
Conversation
Un-ignore A003 which prevents class attributes from shadowing Python builtins (e.g. `type`, `id`, `list`). The codebase already has 0 violations, so this just prevents future regressions. Co-Authored-By: AJ Steers <aj@airbyte.io>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. 💡 Show Tips and TricksTesting This PyAirbyte VersionYou can test this version of PyAirbyte using the following: # Run PyAirbyte CLI from this branch:
uvx --from 'git+https://github.com/airbytehq/PyAirbyte.git@devin/1783309098-ruff-enable-a003' pyairbyte --help
# Install PyAirbyte from this branch for development:
pip install 'git+https://github.com/airbytehq/PyAirbyte.git@devin/1783309098-ruff-enable-a003'PR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
📚 Show Repo GuidanceHelpful ResourcesCommunity SupportQuestions? Join the #pyairbyte channel in our Slack workspace. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesLint Configuration Update
Estimated code review effort: 1 (Trivial) | ~2 minutes Related issues: None found in the provided context — was there a ticket tracking this rule change, wdyt? Related PRs: None identified in the provided context. Suggested labels: Suggested reviewers: Given this is a small config tweak, a quick look from whoever owns the lint config setup should suffice, wdyt? Poem: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Code Coverage OverviewLanguages: Python Python / code-coverage/pytest-fastThe overall coverage in the branch is 67%. The coverage in the branch is 65%. Show a code coverage summary of the most impacted files.
Python / code-coverage/pytest-no-credsThe overall coverage in the branch is 67%. The coverage in the branch is 65%. Show a code coverage summary of the most impacted files.
Python / code-coverage/pytestThe overall coverage in the branch is 72%. The coverage in the branch is 71%. Show a code coverage summary of the most impacted files.
Updated |
|
Closing — will consolidate A003 into a bulk PR with other zero-violation rules. |
Summary
Un-ignore
A003which prevents class attributes from shadowing Python builtins (e.g.type,id,list). The codebase already has 0 violations — this just prevents future regressions.No PR B (code compliance) needed since the codebase already complies.
Part of a set of 10 atomic proposals to increase ruff lint coverage in PyAirbyte.
Link to Devin session: https://app.devin.ai/sessions/6ae2048fc77a4f278aee3dd022384f4a
Requested by: Aaron ("AJ") Steers (@aaronsteers)
Summary by CodeRabbit