-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix inconsistency of line length between flake8 and black #1583
Fix inconsistency of line length between flake8 and black #1583
Conversation
That was a fast approval :) Thanks @bealdav |
@sbidoul it seems this is present in all repos: do we need a global update? |
No, the current version (80, ignore E501, enable B950) is correct. @jcdrubay do you experience specific issues with the current setup? |
@sbidoul but what's the deal of keeping it like this? It can be confusing. If changing it is harmless then I'd sync those numbers. 🤔 |
@simahawk I can't explain better than the Black doc does. Also, regarding these linter files, when they are deployed on a branch, If it ain't broke don't fix it, to avoid unnecessary noise :) Improvements can be discussed in OCA/maintainer-quality-tools to prepare for the next version. [updated] OCA/maintainer-quality-tools, not OCA/maitnainer-tools |
@sbidoul for me is fine, what could help is a simple comment on top of the file. @jcdrubay could you open an issue on https://github.com/OCA/maintainer-tools ? |
@sbidoul Yes I am facing an issue but on a non OCA repository for a piece of code which is:
Example: Before pre-commit,
After pre-commit, the line is 85 characters long:
|
Closed in favor of: OCA/maintainer-tools#448 |
@jcdrubay sorry, I meant OCA/maintainer-quality-tools, that's where the sample files are. For you specific case, can you check if you have the flake8-bugbear pluging. It's the one that allows occasional increased line lenght: |
Thanks for the pointers. Issue has been created on maintainers-quality-tools and closed on maintainer-tools. Even with the flake8-bugbear plugin, I still get some issues. I still believe that the issue is valid for consistency, but at a much lower priority. |
No description provided.