diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8ea829e..ea09fab 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -65,8 +65,8 @@ jobs: - name: Run with ruff run: python -u -m ruff . - - name: Run with refurb to find code that can be written in a more modern way - run: python -u -m refurb . + # - name: Run with refurb to find code that can be written in a more modern way + # run: python -u -m refurb . - name: Run with vulture to find dead code run: | python -c 'exec("from pathlib import Path;import shutil;import subprocess;\ntry: import tomllib;\nexcept ImportError: import tomli as tomllib;\nwith Path(\"pyproject.toml\").open(mode=\"rb\") as fp: c = tomllib.load(fp); n = c[\"project\"][\"name\"];\nif not (v := shutil.which(\"vulture\")): raise RuntimeError(\"Please first install vulture\");\nfor z in sorted({x.split(\" # \",maxsplit=1)[0] for x in sorted(subprocess.run([y for y in [v,\".\",\".vulture_allowlist\" if Path(\".vulture_allowlist\").is_file() else \"\"] if y],capture_output=True,text=True).stdout.rstrip().splitlines()) if not x.startswith(\"# \")}): print(z)")' diff --git a/pyproject.toml b/pyproject.toml index 10964e6..c30a38b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ test = [ "pytest-randomly ~= 3.15.0", "pytest-ruff ~= 0.2.1", "pytest-xdist ~= 3.3.1", - "refurb ~= 1.23.0", + # "refurb ~= 1.23.0", "ruff ~= 0.1.5", "sphinx ~= 7.2.6", "vulture ~= 2.10",