Introduce FBT linter - closes #1387 - #1391
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughThe PR makes selected PostgreSQL APIs and test helpers keyword-only, updates asynchronous autocommit handling, enables Ruff’s FBT rule, and adds release-note fragments. ChangesAPI and lint updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@newsfragments/1387.break.rst`:
- Around line 1-2: Rewrite the content of newsfragment 1387.break.rst as a clear
migration note explaining that the postgresql_noproc and postgresql_proc
factories now partially require keyword arguments, explicitly identifying
options as the first affected argument. Preserve the existing filename and
break-newsfragment type.
In `@newsfragments/1387.misc.rst`:
- Around line 1-3: Rewrite the news fragment to clearly state that the Ruff FBT
(flake8-boolean-trap) rules were enabled, using direct changelog wording and
preserving the existing documentation link.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 1e803fce-8e15-4449-bddb-4c64d11649a4
📒 Files selected for processing (9)
newsfragments/1387.break.rstnewsfragments/1387.misc.rstpyproject.tomlpytest_postgresql/executor.pypytest_postgresql/factories/noprocess.pypytest_postgresql/factories/process.pypytest_postgresql/janitor.pytests/test_chaining.pytests/test_janitor.py
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@newsfragments/1387.break.2.rst`:
- Around line 1-3: Update the migration note for postgresql_noproc to remove
startparams, unixsocketdir, and postgres_options, leaving only options, load,
load_autocommit, and depends_on as affected parameters.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 66bc13e0-a7e6-4f5d-b300-96c47a3f70a9
📒 Files selected for processing (11)
newsfragments/1387.break.1.rstnewsfragments/1387.break.2.rstnewsfragments/1387.break.rstnewsfragments/1387.misc.rstpyproject.tomlpytest_postgresql/executor.pypytest_postgresql/factories/noprocess.pypytest_postgresql/factories/process.pypytest_postgresql/janitor.pytests/test_chaining.pytests/test_janitor.py
Summary by CodeRabbit
Breaking Changes
Bug Fixes
Chores