flake8无法获取配置文件 [英] flake8 not picking up config file
本文介绍了flake8无法获取配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在~/.config/flake8
[flake8]
max-line-length = 100
但是,当我运行flake8
时,配置文件没有被提取.我知道这是因为我仍然会收到超过79个字符的行警告.
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.
我在使用Redhat,但在Mac上也是如此.
I'm on redhat, but the same happens on mac.
我使用pyenv.全局值为2.7.6(甚至不确定是否与此相关)
I use pyenv. Global is 2.7.6 (not even sure this is relevant)
推荐答案
这是由pep8 1.6.1中的回归引起的,并在刚刚发布的1.6.2版本中得到了解决.
This was caused by a regression in pep8 1.6.1 and is resolved in the just released 1.6.2 version.
这篇关于flake8无法获取配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文