Add flake8-no-implicit-concat#7731
Add flake8-no-implicit-concat#7731Dreamsorcerer merged 8 commits intoaio-libs:masterfrom booniepepper:patch-2
Conversation
|
(While a draft: Expecting the first attempt to fail, I'll update accordingly when I can make the time) |
|
May I ask you to keep the deps sorted alphabetically? |
Think you need to enable the codes in the flake8 config. Probably just NIC001 and NIC101 (I'm not sure I want to disallow multi-line concatenations). |
I'd like to keep multiline implicit concat allowed. |
|
@booniepepper this will need a changelog fragment of the |
This will forbid weird implicit string concatenations. https://pypi.org/project/flake8-no-implicit-concat/
|
Going to rebase, then add the changelog entry. Thanks for your patience |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7731 +/- ##
=======================================
Coverage 98.27% 98.27%
=======================================
Files 107 107
Lines 34226 34226
Branches 4058 4058
=======================================
Hits 33637 33637
Misses 416 416
Partials 173 173
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
If the configs are acceptable, I can format the things that aren't passing |
|
Yeah, I think that's good. |
Co-authored-by: Sam Bull <git@sambull.org>
|
Is the test for 3.13 expected to fail? It looks unrelated to my change (Edit) Yes, it's unrelated |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 1d170d3 on top of patchback/backports/3.11/1d170d37f476df705a9dcc3588e192e8ccb871c0/pr-7731 Backporting merged PR #7731 into master
🤖 @patchback |
|
If you could handle that backport as well, that'd be perfect. |
|
Thanks @Dreamsorcerer -- backport is here: #9006 |
What do these changes do?
This will forbid weird implicit string concatenations.
https://pypi.org/project/flake8-no-implicit-concat/
Are there changes in behavior for the user?
Related issue number
Checklist
CONTRIBUTORS.txtCHANGESfolder<issue_id>.<type>for example (588.bugfix)issue_idchange it to the pr id after creating the pr.feature: Signifying a new feature..bugfix: Signifying a bug fix..doc: Signifying a documentation improvement..removal: Signifying a deprecation or removal of public API..misc: A ticket has been closed, but it is not of interest to users.