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] <support@dependabot.com>

* fix lint

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
dependabot-preview[bot] 2020-05-01 15:34:12 +02:00 committed by GitHub
parent 9a2f025646
commit 56959d781a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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: