加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.flake8 901 Bytes
一键复制 编辑 原始数据 按行查看 历史
[flake8]
select = C,E,W
exclude =
./build,
# Exclude third-party libraries
./third_party/**,
./python/paddle/utils/gast/**,
ignore =
# Whitespace before ‘,’, ‘;’, or ‘:’, it is not compatible with black
E203,
# Module level import not at top of file
E402,
# Line too long (82 > 79 characters)
E501,
# Do not compare types, use `isinstance()`
E721,
# Do not use bare except, specify exception instead
E722,
# Do not assign a lambda expression, use a def
E731,
# Do not use variables named ‘l’, ‘O’, or ‘I’
E741,
# Line break before binary operator, it is not compatible with black
W503
per-file-ignores =
# These files need tabs for testing.
test/dygraph_to_static/test_error.py:E101,W191
# temp ignore base directory
python/paddle/base/*:
E712,
E266,
E714
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化