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)