diff options
author | Cristián Maureira-Fredes <Cristian.Maureira-Fredes@qt.io> | 2022-12-16 15:27:35 +0100 |
---|---|---|
committer | Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> | 2022-12-19 10:04:38 +0000 |
commit | 5b4df3e6ff02a6af35d143d202b6e700a307144c (patch) | |
tree | 5cd374893736b8e70bc8ea5fe9d3d6c5cde8a374 /util/dependency_updater/tools/datasources/datasources.py | |
parent | b10cdba1752b232a990ba2432c4bb6d634f933ec (diff) | |
download | qtrepotools-5b4df3e6ff02a6af35d143d202b6e700a307144c.tar.gz |
flake8: fix style issues
flake8 reported a few issues, and there were other details
we could improve, like using more f-strings, avoiding
breaking some lines with '\' at the end and using round parenthesis
instead, and complicated long lines that could be split a bit.
Some function signatures were also long enough to split them into
one argument per line, in favor to display the type annotation
on the last line
Change-Id: I5f65f6c52ac3f2f36488d26a0cb46b8f7c9fff82
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
Diffstat (limited to 'util/dependency_updater/tools/datasources/datasources.py')
-rw-r--r-- | util/dependency_updater/tools/datasources/datasources.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/dependency_updater/tools/datasources/datasources.py b/util/dependency_updater/tools/datasources/datasources.py index 8d74202..fdc7f98 100644 --- a/util/dependency_updater/tools/datasources/datasources.py +++ b/util/dependency_updater/tools/datasources/datasources.py @@ -16,6 +16,6 @@ class Datasources(Namespace): datasource_names = [o for o in Datasources.__dict__.keys() if o.endswith("_client")] for func_name in datasource_names: dict.__setattr__(self, func_name, - getattr(sys.modules["tools.datasources." + func_name], - "create_" + func_name)(config)) + getattr(sys.modules[f"tools.datasources.{func_name}"], + f"create_{func_name}")(config)) print("Done loading datasources!") |