From 76ef3e7ab0a676b1e1960d238a38ed84796e6207 Mon Sep 17 00:00:00 2001 From: akrherz Date: Tue, 7 May 2024 12:16:20 -0500 Subject: [PATCH 1/2] chore: bump ruff --- .pre-commit-config.yaml | 2 +- pyproject.toml | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b5987c0..d14b020 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.3.0" + rev: "v0.4.3" hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/pyproject.toml b/pyproject.toml index fc037dc..15e608b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,11 @@ [tool.ruff] line-length = 79 -lint.select = ["E", "F", "I"] target-version = "py39" +[tool.ruff.lint] +select = [ + "E", + "F", + "I", +] From 1bdebaf47a41714e9fce1c012381cc35acd9f7a5 Mon Sep 17 00:00:00 2001 From: akrherz Date: Tue, 7 May 2024 12:19:54 -0500 Subject: [PATCH 2/2] ci: swap python 3.10 for 3.12 --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f0bc10..bdf64c6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - PYTHON_VERSION: ["3.9", "3.10", "3.11"] + PYTHON_VERSION: ["3.9", "3.11", "3.12"] env: PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }} steps: @@ -56,8 +56,8 @@ jobs: coverage xml - name: Code coverage - if: ${{ matrix.PYTHON_VERSION == '3.11' }} - uses: codecov/codecov-action@v3 + if: ${{ matrix.PYTHON_VERSION == '3.12' }} + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: coverage.xml