-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeStyle] Flake8 tracking issue #46039
Labels
PFCC
Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc
status/close
已关闭
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This was referenced Sep 16, 2022
This was referenced Sep 21, 2022
This was referenced Oct 28, 2022
This was referenced Nov 4, 2022
This was referenced Nov 8, 2022
This was referenced Nov 9, 2022
Merged
Closed
This was referenced Nov 29, 2022
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
PFCC
Paddle Framework Contributor Club,https://github.com/PaddlePaddle/community/tree/master/pfcc
status/close
已关闭
项目说明
用于跟踪 Call-for-Contributions: Flake8 引入计划 及相关 CodeStyle 升级各个任务的计划和进度
部分针对任意文本的代码风格全量修复需要同样为如文档(
.md
、.rst
)、C++ 相关文件(.cc
、.c
、.h
、.cu
、.cpp
、.cmake
、CMakeLists.txt
)一并修复项目初始状态
Flake8 默认启用的三个工具(pycodestyle、pyflakes、mccabe)共包含了一共 132 个子项。Paddle 中存在问题的子项共 64 个。
remove-tabs
for python files #46290 (comment).flake8
配置文件中 ignore 现存的错误码来推进,修复一类错误就去掉一个错误码Flake8 阶段性成果总结 (54/62)
W293(1696)
Python (6000)
文档(67)
hook/yaml(63)
trailing-whitespace
(自动修复)+ flake8
W191(587)
Python (246)
remove-tabs
(自动修复)+ flake8
name
repeated with different values (2022/10/10)True
(2022/10/11)==/!=
to comparestr
,bytes
, andint
literals (2022/10/11).format(...)
missing argument (2022/10/11)#47455
+ flake8
E122(81)
E123(12)
E125(168)
E126(723)
E127(140)
E128(207)
E129(9)
E131(45)
E201(29)
E202(11)
E225(61)
E226(93)
E228(3)
E241(2)
E251(109)
E261(11)
E271(4)
E272(1)
E301(7)
E302(3)
E303(7)
E305(2)
E502(400)
E701(108)
W504(949)
+ flake8
.format(...)
unused named arguments (2022/10/24)E265(29)
name
(2022/11/15)name
from lineN
(2022/12/08)name
is assigned to but never used (TODO)其他成果总结
yapf: disable
的文件进行调整(2022/09/22)The text was updated successfully, but these errors were encountered: