From 9c24630cb552f19dff045c99bdab2d71f66cbf25 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sat, 27 Jul 2024 07:00:39 +0200 Subject: [PATCH] Add codespell and ruff linting --- .github/workflows/pytest.yml | 22 ---------------------- pyproject.toml | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/pytest.yml diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml deleted file mode 100644 index cb466aba..00000000 --- a/.github/workflows/pytest.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: pytest -on: - push: - pull_request: - workflow_dispatch: -jobs: - pytest: - strategy: - fail-fast: false - matrix: # https://github.com/actions/python-versions/releases - python-version: ["3.8", "3.10", "3.12", "3.13"] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - allow-prereleases: true - - run: pip install --upgrade pip setuptools - - run: pip install pytest - - run: pip install --editable . - - run: pytest diff --git a/pyproject.toml b/pyproject.toml index 3db8907f..05ee2b3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,3 +5,18 @@ requires = [ "setuptools >= 66.1" ] build-backend = "setuptools.build_meta" + +[tool.codespell] +ignore-words-list = "alltime,blong,ccompiler,fo,hel" +skip = "*.bak" + +[tool.ruff.lint] +select = [ + "E9", + "F63", + "F7", + "F82", +] +[tool.ruff.lint.per-file-ignores] +"src/cffi/verifier.py" = ["F821"] +"testing/*" = ["F821"]