[BE] Update flake8-comprehensions to 3.11.1 (#97671)

Updates flake8-comprehensions in lintrunner so we can enforce new checks that have been implemented since the last update (including one implemented by me). I also added C417 to the flake8 ignore codes for now since we do not yet conform to that check.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/97671
Approved by: https://github.com/ezyang, https://github.com/malfet
This commit is contained in:
Aaron Gokaslan
2023-03-27 18:07:33 +00:00
committed by PyTorch MergeBot
parent 4d2611375b
commit fcc312e945
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ ignore =
# these ignores are from flake8-bugbear; please fix! # these ignores are from flake8-bugbear; please fix!
B007,B008, B007,B008,
# these ignores are from flake8-comprehensions; please fix! # these ignores are from flake8-comprehensions; please fix!
C407 C407,C417
# these ignores are from flake8-logging-format; please fix! # these ignores are from flake8-logging-format; please fix!
G001,G002,G003,G004,G100,G101,G200,G201,G202 G001,G002,G003,G004,G100,G101,G200,G201,G202
per-file-ignores = per-file-ignores =

View File

@ -35,7 +35,7 @@ init_command = [
'--dry-run={{DRYRUN}}', '--dry-run={{DRYRUN}}',
'flake8==3.8.2', 'flake8==3.8.2',
'flake8-bugbear==20.1.4', 'flake8-bugbear==20.1.4',
'flake8-comprehensions==3.3.0', 'flake8-comprehensions==3.11.1',
'flake8-executable==2.0.4', 'flake8-executable==2.0.4',
'flake8-logging-format==0.9.0', 'flake8-logging-format==0.9.0',
'flake8-pyi==20.5.0', 'flake8-pyi==20.5.0',