From 8c6532eda456dd11fd8e32526515222fd11715f5 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 11 Jan 2024 21:26:38 +0100 Subject: [PATCH] Remove the ruff linter --- .github/workflows/codespell.yml | 15 +++++++++++++++ .github/workflows/codespell_and_ruff.yml | 19 ------------------- pyproject.toml | 21 --------------------- 3 files changed, 15 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/codespell.yml delete mode 100644 .github/workflows/codespell_and_ruff.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..2bd4efae --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,15 @@ +# This Action looks for typos in the codebase using codespell +# and intuitive GitHub Annotations to contributors. +# https://github.com/codespell-project/codespell#readme +name: codespell +on: + push: + branches: [master] + pull_request: + branches: [master] +jobs: + codespell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: codespell-project/actions-codespell@v2 diff --git a/.github/workflows/codespell_and_ruff.yml b/.github/workflows/codespell_and_ruff.yml deleted file mode 100644 index 4f079540..00000000 --- a/.github/workflows/codespell_and_ruff.yml +++ /dev/null @@ -1,19 +0,0 @@ -# This Action uses minimal steps to run in ~5 seconds to rapidly: -# look for typos in the codebase using codespell, and -# lint Python code using ruff and provide intuitive GitHub Annotations to contributors. -# https://github.com/codespell-project/codespell#readme -# https://docs.astral.sh/ruff/ -name: codespell_and_ruff -on: - push: - branches: [master] - pull_request: - branches: [master] -jobs: - codespell_and_ruff: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: pip install --user codespell[toml] ruff - - run: codespell - - run: ruff --output-format=github diff --git a/pyproject.toml b/pyproject.toml index 179b6a81..5914a474 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,24 +4,3 @@ build-backend = "setuptools.build_meta" [tool.codespell] ignore-words-list = "acount,crate,fo,ois,ot,seh" - -[tool.ruff] -extend-ignore = ["E702", "F401", "F541"] - -[tool.ruff.per-file-ignores] -"docs/examples/debug-example.py" = ["E402"] -"docs/examples/tests.py" = ["E402", "F811", "F841"] -"test/check_py27_compat.py" = ["E722"] -"test/debug/test_charptr.py" = ["E703"] -"test/support.py" = ["E401"] -"test/test_call.py" = ["E703"] -"test/test_capsule.py" = ["E711"] -"test/test_capsule_legacy.py" = ["F811"] -"test/test_hpyerr.py" = ["F841"] -"test/test_hpyfield.py" = ["F811"] -"test/test_hpylong.py" = ["E701", "E712", "F841"] -"test/test_hpytype.py" = ["E701", "F841"] -"test/test_hpytype_legacy.py" = ["F841"] -"test/test_hpyunicode.py" = ["E721", "E722"] -"test/test_slots.py" = ["F841"] -"test/test_support.py" = ["F811"]