mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Exclude pyi from flake8 checks. (#16105)
Summary: Idiomatic pyi files will fail with Python 2 flake8 even though they would work with mypy. This is because pyi files generally use Python 3 only syntax. No point in linting them. There are currently no pyi files checked in, this is purely a prophylactic measure. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/16105 Reviewed By: zou3519 Differential Revision: D13709409 Pulled By: ezyang fbshipit-source-id: ec4a959e146f81ccb9533b04348be8dd78808421
This commit is contained in:
parent
76782cfc21
commit
1a5c5fe7c9
2
.flake8
2
.flake8
|
|
@ -1,4 +1,4 @@
|
|||
[flake8]
|
||||
max-line-length = 120
|
||||
ignore = E203,E305,E402,E721,E741,F401,F403,F405,F821,F841,F999,W503,W504
|
||||
exclude = docs/src,venv,third_party,caffe2,scripts,docs/caffe2,tools/amd_build/pyHIPIFY,torch/lib/include,torch/lib/tmp_install
|
||||
exclude = docs/src,venv,third_party,caffe2,scripts,docs/caffe2,tools/amd_build/pyHIPIFY,torch/lib/include,torch/lib/tmp_install,*.pyi
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user