问题
I have my flake8
config file in ~/.config/flake8
[flake8]
max-line-length = 100
However when I run flake8
the config file is not picked up. I know that because i still get warnings over lines longer than 79 char.
I'm on redhat, but the same happens on mac.
I use pyenv. Global is 2.7.6 (not even sure this is relevant)
回答1:
This was caused by a regression in pep8 1.6.1 and is resolved in the just released 1.6.2 version.
来源:https://stackoverflow.com/questions/28436382/flake8-not-picking-up-config-file