From 62fc31fd60a71317b4b8f5bd6e5093659bbb08b6 Mon Sep 17 00:00:00 2001 From: Charles Coggins <maxrake@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:27:09 -0600 Subject: [PATCH] ci: skip `refurb` QA check See https://github.com/phylum-dev/phylum-ci/issues/348 for detail. --- .github/workflows/auto_updates.yml | 4 +++- .pre-commit-config.yaml | 10 ++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto_updates.yml b/.github/workflows/auto_updates.yml index 03be76cb..dcbeb8a5 100644 --- a/.github/workflows/auto_updates.yml +++ b/.github/workflows/auto_updates.yml @@ -58,13 +58,15 @@ jobs: # NOTE: Specific repos are specified for update since the autoupdated/frozen version here may not always be the # latest version. This is the case for `poetry`, which has described the limitations of `pre-commit` here: # https://python-poetry.org/docs/pre-commit-hooks/#why-does-pre-commit-autoupdate-not-update-to-the-latest-version + # + # TODO: Put `refurb` back in this list once https://github.com/dosisod/refurb/issues/305 is resolved. + # https://github.com/phylum-dev/phylum-ci/issues/348 - name: Update pre-commit hooks run: | poetry run pre-commit autoupdate --freeze \ --repo https://github.com/pre-commit/pre-commit-hooks \ --repo https://github.com/psf/black \ --repo https://github.com/charliermarsh/ruff-pre-commit \ - --repo https://github.com/dosisod/refurb \ --repo https://github.com/jendrikseipp/vulture \ --repo https://github.com/adrienverge/yamllint diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b1639bba..cfcd8e88 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,10 +32,12 @@ repos: hooks: - id: ruff - - repo: https://github.com/dosisod/refurb - rev: b5f9f11fa01afc34884349ebf42c999dc208ee01 # frozen: v1.22.2 - hooks: - - id: refurb + # TODO: Restore `refurb` once https://github.com/dosisod/refurb/issues/305 is resolved. + # https://github.com/phylum-dev/phylum-ci/issues/348 + # - repo: https://github.com/dosisod/refurb + # rev: b5f9f11fa01afc34884349ebf42c999dc208ee01 # frozen: v1.22.2 + # hooks: + # - id: refurb - repo: https://github.com/jendrikseipp/vulture rev: 42ae1c1776f475a205bedeaf8dc6913c044e1440 # frozen: v2.10