fix: false positive WPS412, refs #3569#3571
Merged
sobolevn merged 3 commits intowemake-services:masterfrom Dec 11, 2025
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3571 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 369 369
Lines 12263 12265 +2
Branches 844 844
=========================================
+ Hits 12263 12265 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
sobolevn
reviewed
Dec 11, 2025
| - Allows `__init__.py` files that consist only of imports, #3486 | ||
| - Adds `--max-conditions` option, #3493 | ||
| - Adds `--known-enum-bases` option to support custom enum-like base classes, #3513 | ||
| - Fixes false positive `WPS412` with docstring and imports in `__init__.py` #3569 |
Member
There was a problem hiding this comment.
This should go to WIP section.
sobolevn
reviewed
Dec 11, 2025
| - Adds `WPS481`: for statement not allowed in class and module scopes, #3520 | ||
| - Allows `/` string in `WPS226`, #3554 | ||
| - Adds `WPS365`: match statement can be simplified to `if`, #3520 | ||
| - Fixes false positive `WPS412` with docstring and imports in `__init__.py` #3569 |
Member
There was a problem hiding this comment.
It should go to the "bugfixes" section 🌚️️
sobolevn
approved these changes
Dec 11, 2025
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.
I have made things!
Checklist
CHANGELOG.mdRelated issues
Closes #3569
🙏 Please, if you or your company is finding wemake-python-styleguide valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/wemake-python-styleguide. As a thank you, your profile/company logo will be added to our main README which receives hundreds of unique visitors per day.