Skip to content
Snippets Groups Projects
Commit 3b995a38 authored by Oscar Gustafsson's avatar Oscar Gustafsson :bicyclist:
Browse files

Run pyupgrade

parent 2b8fe4d6
No related branches found
No related tags found
No related merge requests found
Pipeline #87669 failed
......@@ -2,10 +2,14 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-docstring-first
- id: check-yaml
- id: end-of-file-fixer
exclude_types: [svg]
- id: trailing-whitespace
exclude_types: [svg]
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
- id: black
......@@ -406,7 +406,7 @@ class Schedule:
ax.text(
-0.2,
end[1],
"{}: {}".format(name, laps),
f"{name}: {laps}",
verticalalignment="center",
horizontalalignment="right",
)
......
......@@ -496,7 +496,7 @@ class SFG(AbstractOperation):
Keyword arguments:
type_name: The type_name of the desired components.
"""
reg = "{}[0-9]+".format(type_name)
reg = f"{type_name}[0-9]+"
p = re.compile(reg)
components = [
val for key, val in self._components_by_id.items() if p.match(key)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment