mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Suppress C408 lint (don't use dict constructor) (#17813)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17813 We have a lot of manually written out dict() constructors, and (1) I don't think use of curly brace syntax is much of an improvement and (2) it seems like a waste of time to fix them all. Reviewed By: eellison Differential Revision: D14390136 fbshipit-source-id: 6199bef4dea75b6079bcb9d9e8acf20a2e1a86e1
This commit is contained in:
committed by
Facebook Github Bot
parent
11f50e73e3
commit
55cf9c742a
3
.flake8
3
.flake8
@ -1,4 +1,5 @@
|
||||
[flake8]
|
||||
max-line-length = 120
|
||||
ignore = E203,E305,E402,E721,E741,F401,F403,F405,F821,F841,F999,W503,W504
|
||||
# C408 ignored because we like the dict keyword argument syntax
|
||||
ignore = E203,E305,E402,E721,E741,F401,F403,F405,F821,F841,F999,W503,W504,C408
|
||||
exclude = docs/src,venv,third_party,caffe2,scripts,docs/caffe2,tools/amd_build/pyHIPIFY,torch/lib/include,torch/lib/tmp_install,build,torch/include
|
||||
|
Reference in New Issue
Block a user