[BE] Add flake8-logging-format linter (#94840)

Follow up to #94708
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94840
Approved by: https://github.com/ezyang
This commit is contained in:
Aaron Gokaslan
2023-02-15 17:54:50 +00:00
committed by PyTorch MergeBot
parent dc4f2af6f6
commit b46b2e35d4
5 changed files with 9 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
[flake8]
select = B,C,E,F,P,T4,W,B9
enable-extensions = G
select = B,C,E,F,G,P,T4,W,B9
max-line-length = 120
# C408 ignored because we like the dict keyword argument syntax
# E501 is not flexible enough, we're using B950 instead
@@ -12,6 +13,8 @@ ignore =
B007,B008,
# these ignores are from flake8-comprehensions; please fix!
C407
# these ignores are from flake8-logging-format; please fix!
G001,G002,G003,G004,G100,G101,G200,G201,G202
per-file-ignores =
__init__.py: F401
torch/utils/cpp_extension.py: B950