Skip to content

Commit

Permalink
Update flake8 version (#15816)
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca authored Nov 25, 2022
1 parent 2c3cc74 commit 1e56b75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ repos:
)$
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 6.0.0
hooks:
- id: flake8
name: Check PEP8
17 changes: 6 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ exclude_lines =
pass
rank_zero_warn
raise NotImplementedError
# TODO: figure out how to get codecov to pick up the test results on these backends
# The actual coverage for each is 90%+
# *metrics (94%+) are temporarily removed from testing while tests speed up
omit =
pytorch_lightning/cluster_environments/*.py
pytorch_lightning/utilities/distributed.py
pytorch_lightning/tuner/auto_gpu_select.py
pytorch_lightning/distributed/dist.py


[flake8]
Expand All @@ -72,6 +64,9 @@ verbose = 2
# https://pep8.readthedocs.io/en/latest/intro.html#error-codes
format = pylint
ignore =
E731 # Ignore "Do not assign a lambda expression, use a def"
W503 # Ignore "Line break occurred before a binary operator"
E203 # Ignore "whitespace before ':'"
# Ignore "Do not assign a lambda expression, use a def"
E731
# Ignore "Line break occurred before a binary operator"
W503
# Ignore "whitespace before ':'"
E203

0 comments on commit 1e56b75

Please sign in to comment.