From 8bf7731c090279fd8893370cb38381ea2325f336 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 19 Aug 2024 09:15:02 -0500 Subject: [PATCH] use newer pylint --- .pre-commit-config.yaml | 2 +- adabot/lib/circuitpython_library_validators.py | 3 +-- requirements.txt | 2 +- tools/ci_status.py | 1 + 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bebc219..f502348 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: hooks: - id: black - repo: https://github.com/pycqa/pylint - rev: v2.17.4 + rev: v3.2.6 hooks: - id: pylint name: pylint diff --git a/adabot/lib/circuitpython_library_validators.py b/adabot/lib/circuitpython_library_validators.py index 897a35b..d08f973 100644 --- a/adabot/lib/circuitpython_library_validators.py +++ b/adabot/lib/circuitpython_library_validators.py @@ -424,8 +424,7 @@ def _filter_file_diffs(filenames): commit_date = datetime.datetime.strptime( commit_date_val, "%Y-%m-%dT%H:%M:%SZ" ) - if commit_date < oldest_commit_date: - oldest_commit_date = commit_date + oldest_commit_date = min(oldest_commit_date, commit_date) date_diff = datetime.datetime.today() - oldest_commit_date if date_diff.days > datetime.date.today().max.day: diff --git a/requirements.txt b/requirements.txt index 2d25e9b..2d24158 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ black==24.3.0 packaging==22.0 -pylint==2.11.1 +pylint==3.2.6 pytest pyyaml>=5.4.1 redis==4.5.4 diff --git a/tools/ci_status.py b/tools/ci_status.py index 50d8529..4168e6e 100644 --- a/tools/ci_status.py +++ b/tools/ci_status.py @@ -81,6 +81,7 @@ def run_gh_rest_rerun( """ if not rerun_level: return False + result = None if rerun_level == 1: result = ( run_gh_rest_check(lib_repo, user, branch, workflow_filename) == "success"