Add pyupgrade (in pre-commit and CI) (#33688)

* Add pyupgrade (in pre-commit and CI)

* Fix leftover results of pyupgrade

* Ensure we run for Python 3.7 on pyupgrade
This commit is contained in:
Franck Nijhof authored and GitHub committed 2020-04-05 12:49:57 +02:00
1 parent 5bf7e0fcc0
commit f38011560f
9 files changed
+18 -9

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ class Error:
def __str__(self) -> str:
"""Represent error as string."""
return "[{}] {}".format(self.plugin.upper(), self.error)
return f"[{self.plugin.upper()}] {self.error}"
@attr.s