Bump flake8 version

Fixes support for importlib_metadata 5.0.0,
https://github.com/PyCQA/flake8/issues/1701
This commit is contained in:
Valentin Lorentz 2022-10-22 12:33:20 +02:00
parent 40385c112b
commit 690aaf24a1
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ repos:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
rev: 5.0.4
hooks:
- id: flake8

View File

@ -39,7 +39,7 @@ class SopelController(BaseClientController):
if self.filename:
try:
(Path("~/.sopel/").expanduser() / self.filename).unlink()
except OSError: #  File does not exist
except OSError: # File does not exist
pass
def open_file(self, filename: str, mode: str = "a") -> TextIO: