mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Enable C407 of flake8 (#165046)
This PR enables C407 on flake8. The description is `C407` is `Unnecessary list comprehension - ‘<builtin>’ can take a generator`. Pull Request resolved: https://github.com/pytorch/pytorch/pull/165046 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
2bcd892c86
commit
6c9c6e0936
2
.flake8
2
.flake8
@ -13,8 +13,6 @@ ignore =
|
|||||||
EXE001,
|
EXE001,
|
||||||
# these ignores are from flake8-bugbear; please fix!
|
# these ignores are from flake8-bugbear; please fix!
|
||||||
B007,B008,B017,B019,B023,B028,B903,B905,B906,B907,B908,B910
|
B007,B008,B017,B019,B023,B028,B903,B905,B906,B907,B908,B910
|
||||||
# these ignores are from flake8-comprehensions; please fix!
|
|
||||||
C407,
|
|
||||||
# these ignores are from flake8-logging-format; please fix!
|
# these ignores are from flake8-logging-format; please fix!
|
||||||
G100,G101,G200
|
G100,G101,G200
|
||||||
# these ignores are from flake8-simplify. please fix or ignore with commented reason
|
# these ignores are from flake8-simplify. please fix or ignore with commented reason
|
||||||
|
Reference in New Issue
Block a user