From b8abad6b0614d9288731f82ed7ddf06f76040f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Tue, 31 Dec 2024 18:21:36 +0100 Subject: [PATCH] Fix lint warnings, black check --- .github/workflows/lint.yml | 4 ++++ pyproject.toml | 3 +-- solc_select/__main__.py | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index df53232..80fb5bc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -63,6 +63,10 @@ jobs: steps: - name: Checkout Code uses: actions/checkout@v4 + with: + # super-linter needs the full git history to get the + # list of files that changed across commits + fetch-depth: 0 - name: Set up Python 3.8 uses: actions/setup-python@v5 diff --git a/pyproject.toml b/pyproject.toml index a5222fe..e430d08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.black] -target-version = ["py36"] +target-version = ["py38"] line-length = 100 [tool.pylint.messages_control] disable = """ @@ -7,7 +7,6 @@ missing-module-docstring, missing-class-docstring, missing-function-docstring, unnecessary-lambda, -bad-continuation, cyclic-import, line-too-long, invalid-name, diff --git a/solc_select/__main__.py b/solc_select/__main__.py index 6193015..9025920 100644 --- a/solc_select/__main__.py +++ b/solc_select/__main__.py @@ -66,6 +66,7 @@ def solc_select() -> None: elif args.get(SHOW_VERSIONS) is not None: versions_installed = installed_versions() if versions_installed: + (current_ver, source) = (None, None) res = current_version() if res: (current_ver, source) = res