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/main.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/main.py')
-rw-r--r-- | util/dependency_updater/main.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/dependency_updater/main.py b/util/dependency_updater/main.py index f5f628d..5349ad7 100644 --- a/util/dependency_updater/main.py +++ b/util/dependency_updater/main.py @@ -129,7 +129,7 @@ def main(): # Collect the list of qt5 modules for our reference. config.qt5_default = toolbox.get_qt5_submodules(config, ["essential", "addon", "deprecated", - "preview"]) + "preview"]) # Collect Repo objects for everything in the cache or list of qt5 modules, as necessary. repos = toolbox.get_repos(config) @@ -184,11 +184,11 @@ def main(): repo=config.rewind_module, text=f"INFO: Rewinding '{config.args.branch}' to {new_sha}." f" Modules depending on {config.rewind_module.id} have been reset.") - if config.args.update_supermodule and config.state_data.get("qt/qt5") \ - and not config.rewind_module.id == "yocto/meta-qt6": + if (config.args.update_supermodule and config.state_data.get("qt/qt5") + and not config.rewind_module.id == "yocto/meta-qt6"): del config.state_data["qt/qt5"] - if config.args.update_yocto_meta and config.state_data.get("yocto/meta-qt6") \ - and not config.rewind_module.id == "qt/qt5": + if (config.args.update_yocto_meta and config.state_data.get("yocto/meta-qt6") + and not config.rewind_module.id == "qt/qt5"): del config.state_data["yocto/meta-qt6"] # bump the progress of repos that have had updates pushed and merged. |