From f6ba42aa2678af96dcf388c8e4dae202296da1f1 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 1 Dec 2025 09:13:07 +0100 Subject: [PATCH 1/4] CI: Validate on Python 3.14 --- .github/workflows/tests.yml | 11 ++++++++++- pyproject.toml | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a2dbbd7..df12d04 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,7 +24,16 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: [ + "3.7", + "3.8", + "3.9", + "3.10", + "3.11", + "3.12", + "3.13", + "3.14", + ] os: ["ubuntu-22.04"] cratedb-version: ["nightly"] fail-fast: false diff --git a/pyproject.toml b/pyproject.toml index 5345888..95b0b4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ classifiers = [ "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Communications", "Topic :: Database", "Topic :: Documentation", From ece2b55c522bcc7c3caf59ab4529bdd07d73c573 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 1 Dec 2025 09:15:22 +0100 Subject: [PATCH 2/4] Chore: Use newest proselint >= 0.16 --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 95b0b4a..2856ab5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,7 @@ dependencies = [ ] optional-dependencies.develop = [ "poethepoet<1", - "proselint<1", + "proselint>=0.16,<1", "pyproject-fmt<3", "ruff<0.15", "validate-pyproject<1", @@ -168,7 +168,7 @@ lint = [ { cmd = "ruff check sqlalchemy_postgresql_relaxed/ tests/" }, { cmd = "ruff format --check sqlalchemy_postgresql_relaxed/ tests/" }, { cmd = "validate-pyproject pyproject.toml" }, - { cmd = "proselint *.rst" }, + { cmd = "proselint check *.rst" }, # { cmd = "mypy" }, ] From 13c16a335ba2ce1deec3dd3a5167107aa7736700 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 1 Dec 2025 09:15:49 +0100 Subject: [PATCH 3/4] Chore: Format using newest ruff 0.14.7 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2856ab5..80230c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,7 +125,7 @@ lint.select = [ "YTT", ] -lint.extend-ignore = [ "PD901" ] +lint.extend-ignore = [ ] lint.per-file-ignores."tests/*" = [ "S101" ] # Use of `assert` detected [tool.pytest.ini_options] From 3addd589c0ad485c70718d965ebe07798cac6862 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Mon, 1 Dec 2025 09:20:43 +0100 Subject: [PATCH 4/4] CI: Don't install and run proselint on older versions of Python proselint >= 0.16 requires Python 3.10 or higher. --- .github/workflows/tests.yml | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df12d04..c9f64a3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -74,9 +74,15 @@ jobs: pip install --editable=.[test,develop] - name: Run linter and software tests + if: matrix.python-version != '3.7' && matrix.python-version != '3.8' && matrix.python-version != '3.9' run: poe check + - name: Run software tests + if: matrix.python-version == '3.7' && matrix.python-version == '3.8' && matrix.python-version == '3.9' + run: poe test + - name: Upload coverage to Codecov + if: matrix.python-version != '3.7' && matrix.python-version != '3.8' && matrix.python-version != '3.9' uses: codecov/codecov-action@v5 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index 80230c7..56e9f1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,7 @@ dependencies = [ ] optional-dependencies.develop = [ "poethepoet<1", - "proselint>=0.16,<1", + "proselint>=0.16,<1; python_version>='3.10'", "pyproject-fmt<3", "ruff<0.15", "validate-pyproject<1",