From 56959d781a627fe0c635998a46708e0971b3b774 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Fri, 1 May 2020 15:34:12 +0200 Subject: [PATCH] Bump pylint from 2.4.4 to 2.5.0 (#1684) * Bump pylint from 2.4.4 to 2.5.0 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.4.4 to 2.5.0. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.4.4...pylint-2.5.0) Signed-off-by: dependabot-preview[bot] * fix lint Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Pascal Vizeli --- requirements_tests.txt | 2 +- supervisor/api/discovery.py | 4 ++-- supervisor/api/snapshots.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements_tests.txt b/requirements_tests.txt index a19f1345e..338dac4ca 100644 --- a/requirements_tests.txt +++ b/requirements_tests.txt @@ -1,5 +1,5 @@ flake8==3.7.9 -pylint==2.4.4 +pylint==2.5.0 pytest==5.4.1 pytest-timeout==1.3.4 pytest-aiohttp==0.3.0 diff --git a/supervisor/api/discovery.py b/supervisor/api/discovery.py index ddc03abc5..523402674 100644 --- a/supervisor/api/discovery.py +++ b/supervisor/api/discovery.py @@ -64,7 +64,7 @@ class APIDiscovery(CoreSysAttributes): # Access? if body[ATTR_SERVICE] not in addon.discovery: - raise APIForbidden(f"Can't use discovery!") + raise APIForbidden("Can't use discovery!") # Process discovery message message = self.sys_discovery.send(addon, **body) @@ -94,7 +94,7 @@ class APIDiscovery(CoreSysAttributes): # Permission if message.addon != addon.slug: - raise APIForbidden(f"Can't remove discovery message") + raise APIForbidden("Can't remove discovery message") self.sys_discovery.remove(message) return True diff --git a/supervisor/api/snapshots.py b/supervisor/api/snapshots.py index 152c820aa..361ca2bca 100644 --- a/supervisor/api/snapshots.py +++ b/supervisor/api/snapshots.py @@ -181,7 +181,7 @@ class APISnapshots(CoreSysAttributes): async def upload(self, request): """Upload a snapshot file.""" with TemporaryDirectory(dir=str(self.sys_config.path_tmp)) as temp_dir: - tar_file = Path(temp_dir, f"snapshot.tar") + tar_file = Path(temp_dir, "snapshot.tar") try: with tar_file.open("wb") as snapshot: