我正在从# noqa迁移到flake8,以获得pyflakes行忽略特性。为了简化迁移,我想从只检查之前正在检查的pyflakes开始,我喜欢pyflakes对"will never complain about style"的简单承诺。我能不能只使用flake8 --select F从pyflakes报告的内容开始呢?
flake8允许选择或禁用特定的错误代码,如F401“模块已导入但未使用”。F代表什么?
flake8 error-code documentation不会列出所有错误代码。
发布于 2017-11-16 03:56:59
是的,仅使用pyflakes:
flake8 --select Fflake8记录了pyflakes glossary上的F和C“类”
和
E999检查;some documented by flake8C:mccabe complexity,currently only C901W和E:pep8 violations documented by pycodestyle pep is not a pep error;"We report E999 when we fail to compile a file into an Abstract Syntax Tree for the plugins that require it"
https://stackoverflow.com/questions/47315777
复制相似问题