The Wayback Machine - https://web.archive.org/web/20230217034630/https://github.com/pytorch/pytorch/blame/master/.flake8
Skip to content
Permalink
Newer
Older
100644 41 lines (41 sloc) 1.22 KB
Ignoring revisions in .git-blame-ignore-revs.
1
[flake8]
2
enable-extensions = G
3
select = B,C,E,F,G,P,T4,W,B9
4
max-line-length = 120
5
# C408 ignored because we like the dict keyword argument syntax
6
# E501 is not flexible enough, we're using B950 instead
7
ignore =
8
E203,E305,E402,E501,E721,E741,F405,F821,F841,F999,W503,W504,C408,E302,W291,E303,
June 4, 2020 12:53
9
# shebang has extra meaning in fbcode lints, so I think it's not worth trying
10
# to line this up with executable bit
11
EXE001,
12
# these ignores are from flake8-bugbear; please fix!
13
B007,B008,
14
# these ignores are from flake8-comprehensions; please fix!
16
# these ignores are from flake8-logging-format; please fix!
17
G001,G002,G003,G004,G100,G101,G200,G201,G202
18
per-file-ignores =
19
__init__.py: F401
20
torch/utils/cpp_extension.py: B950
21
torchgen/api/types/__init__.py: F401,F403
22
torchgen/executorch/api/types/__init__.py: F401,F403
23
optional-ascii-coding = True
25
./.git,
26
./build_test_custom_build,
27
./build,
28
./caffe2,
29
./docs/caffe2,
30
./docs/cpp/src,
31
./docs/src,
32
./functorch/docs,
33
./functorch/examples,
34
./functorch/notebooks,
35
./scripts,
36
./test/generated_type_hints_smoketest.py,
37
./third_party,
38
./torch/include,
39
./torch/lib,
40
./venv,
41
*.pyi
Morty Proxy This is a proxified and sanitized view of the page, visit original site.