Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法将 pep8 与 cython 文件一起使用?
例如,pep8 不适用于运算符。
getline(& line)
产生错误:
E225 missing whitespace around operator
现在,如果我尝试修复它并运行它:
getline( & line)
E201 whitespace after '('
神经网络库Chainer为 Cython提供了一个非常方便的 flake8配置:
[flake8] filename = *.pyx,*.px* exclude = .eggs,*.egg,build ignore = E901,E225,E226,E227