"Fossies" - the Fresh Open Source Software Archive

Member "pytorch-1.8.2/.flake8" (23 Jul 2021, 1000 Bytes) of package /linux/misc/pytorch-1.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for ".flake8": 1.12.1_vs_1.13.0.

    1 [flake8]
    2 select = B,C,E,F,P,T4,W,B9
    3 max-line-length = 120
    4 # C408 ignored because we like the dict keyword argument syntax
    5 # E501 is not flexible enough, we're using B950 instead
    6 ignore =
    7     E203,E305,E402,E501,E721,E741,F403,F405,F821,F841,F999,W503,W504,C408,E302,W291,E303,
    8     # shebang has extra meaning in fbcode lints, so I think it's not worth trying
    9     # to line this up with executable bit
   10     EXE001,
   11     # these ignores are from flake8-bugbear; please fix!
   12     B007,B008,
   13     # these ignores are from flake8-comprehensions; please fix!
   14     C400,C401,C402,C403,C404,C405,C407,C411,C413,C414,C415
   15 per-file-ignores = __init__.py: F401 torch/utils/cpp_extension.py: B950
   16 exclude =
   17     docs/src,
   18     docs/cpp/src,
   19     venv,
   20     third_party,
   21     caffe2,
   22     scripts,
   23     docs/caffe2,
   24     torch/lib/include,
   25     torch/lib/tmp_install,
   26     build,
   27     torch/include,
   28     *.pyi,
   29     .git,
   30     build,
   31     build_test_custom_build,
   32     build_code_analyzer,
   33     test/generated_type_hints_smoketest.py