-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def func(): ... causes false positives for WPS220, E704 and WPS473 #2847
Labels
bug
Something isn't working
Comments
dolfinus
changed the title
def func(): ... causes false positives for WPS220 and E704
def func(): ... causes false positives for WPS220, E704 and WPS473
Feb 13, 2024
4 tasks
@sobolevn I have fixed false positive violations generated by WPS473. Take a look, please |
#2855 fixed only false positives of WPS473. But false positives of E704 and WPS220 are still not solved. Please reopen the issue |
Indeed:
We cannot fix |
Also related #2898 |
But why? |
Because this is from |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's wrong
Source code:
https://github.com/MobileTeleSystems/horizon/blob/adc102caa8a84c281b8401b17d6d7998c073941e/horizon/client/base.py#L29
After upgrading to black 24 it changed formatting to:
https://github.com/MobileTeleSystems/horizon/blob/a842768ff2e9f403fc41a1ea378d1a636fde6119/horizon/client/base.py#L29
But wemake-python-styleguide started complaining about this:
https://github.com/MobileTeleSystems/horizon/actions/runs/7789891136/job/21242515619?pr=4#step:8:1
How it should be
Inlined
def func(): ...
should not cause E704 or WPS220Flake8 version and plugins
pip information
OS information
Linux 6.7.4-1-MANJARO
The text was updated successfully, but these errors were encountered: