You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 16, 2024. It is now read-only.
pre-commit exit 1 due to the flake8 config at 80 characters for a code that is automatically reformatted by black from less than 80 characters per line to 88 characters per line.
Expected behavior
flake 8 line length should be consistent with the line length applied by black.
Milestone (Odoo version)
Module(s)
Steps to reproduce
For a piece of code which is:
Example:
Before pre-commit,
After pre-commit, the line is 85 characters long:
Current behavior
pre-commit exit 1 due to the flake8 config at 80 characters for a code that is automatically reformatted by black from less than 80 characters per line to 88 characters per line.
Expected behavior
flake 8 line length should be consistent with the line length applied by black.
Related Issue:
OCA/web#1583
Actually, there is an issue from black that leads to that 89 characters instead of 88:
psf/black#1161
Workaround
Restructure the code to avoid this unfortunate situation:
The text was updated successfully, but these errors were encountered: