-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error codes too long for flake8>=6.0.0
#230
Comments
oh rip. Yeah long error codes has been "officially disallowed" for quite a while, see Lines 53 to 59 in d29a33d
but it's never actually impacted anything before. Given past interactions with them I'm not surprised they don't really care about the impact on plugins, and almost surely won't change back even if it breaks tons of them. You can work around it currently in a few ways:
We could try to work around it by also accepting Actually renaming all error codes... sounds like a huge pain, would break lots of stuff downstream, create a discrepancy with the ruff implementation, and be very ugly. So maybe we just put a big red warning in the documentation, and consider moving further away from using
Anthony Sottile is the primary maintainer of flake8 and several other tools. But yeah he can often be quite rude when dealing with other people. |
Oh and another workaround here would be to use |
@jakkdl Thank you for suggestions and explaining some nuances in projects!
It is and I understand. https://github.com/guilatrova/tryceratops devs have changed their error codes (from |
I don't think the tryceratops rename is particularly relevant. They renamed because of a conflict with flake8-type-checking and as such didn't really have much of a choice in the matter. I don't want to rename at all, and even if we did change to ASYxxx or w/e it might make more sense to have ruff stick to using ASYNCxxx since it's so much more readable. |
Yeah, I think we should probably just document the issue and move on with our lives. As it happens I do also have PyQCA commit bits, but I really don't have the time and energy to work out what's happened and build a consensus around not-breaking codes which aren't exactly three letters 😥 |
Wow the solution in flake8-pylint is... simultaneously hilarious and horrifying: orsinium-labs/flake8-pylint#5
|
flake8
stopped accepting error codes which don't match pattern^[A-Z]{1,3}[0-9]{0,3}$
in.flake8
config file underignore=
option. Change introduced in this commit PyCQA/flake8@1346dde .It does work however for
--ignore
command line option (but that basically ignores my.flake8
config file):PyCQA/flake8#1802 (comment)
It also works for inline
# noqa
ignores.Your codes use 5 characters instead of 3. I wanted to
But it returns
Env info
In
flake8
repo, some Anthony guy who commited the change, behaves like jerk saying basically "it works like it supposed to and stop talking about it" without any consideration for maybe adding an option to configure this pattern so that plugin like yours can work:ignore
/extend-ignore
codes are rejected when specified in config files PyCQA/flake8#1802 (comment)I don't know if:
noqa
in bunch of places;flake8
must stop enforcing it so rigidly.Help.
The text was updated successfully, but these errors were encountered: