python flake8 ignore E501 and max-line-length

12.6k views Asked by At

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?

1

There are 1 answers

5
Rolv Apneseth On

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)