Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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