From 18c2d8af5e0d8635fec9a675a4e05a6cacdd605f Mon Sep 17 00:00:00 2001 From: Nat Chin Date: Wed, 8 Nov 2023 14:08:16 -0500 Subject: [PATCH] pylint/black --- solc_select/__main__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/solc_select/__main__.py b/solc_select/__main__.py index b657114..7063a11 100644 --- a/solc_select/__main__.py +++ b/solc_select/__main__.py @@ -19,9 +19,10 @@ halt_incompatible_system, halt_old_architecture, upgrade_architecture, - get_latest_release + get_latest_release, ) + # pylint: disable=too-many-branches def solc_select() -> None: parser = argparse.ArgumentParser() @@ -41,7 +42,7 @@ def solc_select() -> None: parser_use = subparsers.add_parser("use", help="change the version of global solc compiler") parser_use.add_argument( USE_VERSION, help="solc version you want to use (eg: 0.4.25)", type=valid_version, nargs="?" - ) + ) parser_use.add_argument("--always-install", action="store_true") parser_use = subparsers.add_parser("versions", help="prints out all installed solc versions") parser_use.add_argument(SHOW_VERSIONS, nargs="*", help=argparse.SUPPRESS) @@ -85,9 +86,9 @@ def solc_select() -> None: def solc() -> None: - if installed_versions() == []: + if installed_versions() == []: print("No solc versions found, installing latest") - switch_global_version(version=get_latest_release(),always_install=True) + switch_global_version(version=get_latest_release(), always_install=True) res = current_version() if res: (version, _) = res