what is the purpose of using both
[flake8]
ignore = E501
max-line-length = 120
i have seen lot of codebases following this format in setup.cfg file but my question is if you ignore E501 then you code accepts any number of characters per line in a module, again why they are using max-line-length?
I believe this is because the default characters per line is 82, so they ignore that so it can exceed that number, but then set a larger limit (120 in your case)
It would be enough to have only max-line-length. Default is 79.
In
setup.cfg
[flake8]
max-line-length = 88
max-line-length overwrites ignore = E50188 is the default length of black formatter.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With