From 690aaf24a1cc2f6165b51cc5b431328305ee5c75 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 22 Oct 2022 12:33:20 +0200 Subject: [PATCH] Bump flake8 version Fixes support for importlib_metadata 5.0.0, https://github.com/PyCQA/flake8/issues/1701 --- .pre-commit-config.yaml | 2 +- irctest/controllers/sopel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d20213..1539ef3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,7 @@ repos: - id: isort - repo: https://gitlab.com/pycqa/flake8 - rev: 3.8.3 + rev: 5.0.4 hooks: - id: flake8 diff --git a/irctest/controllers/sopel.py b/irctest/controllers/sopel.py index ce5aa3b..076cf51 100644 --- a/irctest/controllers/sopel.py +++ b/irctest/controllers/sopel.py @@ -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: