我从pyflakes迁移到flake8以获得# noqa
行忽略功能。为了简化迁移,我想从只检查pyflakes之前检查的内容开始,我喜欢pyflakes对"will never complain about style"的简单承诺。我可以用flake8 --select F
从pyflakes报告的内容开始吗?在
flake8允许选择或禁用特定的错误代码,如F401
“模块已导入但未使用”。F
代表什么?在
flake8 error-code documentation没有列出所有错误代码。在
是,仅使用pyflakes:
flake8在pyflakes glossary上记录}“类”:
F
和{F
:pyflakes lint检查;some documented by flake8C
:mccabe复杂性,currently only ^{W
和E
:pep8违规documented by pycodestyleE999
不是pep错误;"We report E999 when we fail to compile a file into an Abstract Syntax Tree for the plugins that require it"相关问题 更多 >
编程相关推荐