Skip to content

Commit 1e56b75

Browse files
authored
Update flake8 version (#15816)
1 parent 2c3cc74 commit 1e56b75

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ repos:
105105
)$
106106
107107
- repo: https://github.com/PyCQA/flake8
108-
rev: 4.0.1
108+
rev: 6.0.0
109109
hooks:
110110
- id: flake8
111111
name: Check PEP8

setup.cfg

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ exclude_lines =
4545
pass
4646
rank_zero_warn
4747
raise NotImplementedError
48-
# TODO: figure out how to get codecov to pick up the test results on these backends
49-
# The actual coverage for each is 90%+
50-
# *metrics (94%+) are temporarily removed from testing while tests speed up
51-
omit =
52-
pytorch_lightning/cluster_environments/*.py
53-
pytorch_lightning/utilities/distributed.py
54-
pytorch_lightning/tuner/auto_gpu_select.py
55-
pytorch_lightning/distributed/dist.py
5648

5749

5850
[flake8]
@@ -72,6 +64,9 @@ verbose = 2
7264
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
7365
format = pylint
7466
ignore =
75-
E731 # Ignore "Do not assign a lambda expression, use a def"
76-
W503 # Ignore "Line break occurred before a binary operator"
77-
E203 # Ignore "whitespace before ':'"
67+
# Ignore "Do not assign a lambda expression, use a def"
68+
E731
69+
# Ignore "Line break occurred before a binary operator"
70+
W503
71+
# Ignore "whitespace before ':'"
72+
E203

0 commit comments

Comments
 (0)