From 11ce608040ef19e6b2dc1496197bc070b79f3bb1 Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Wed, 5 Mar 2025 17:24:26 +0100 Subject: [PATCH 1/3] Update Python and ANTLR test matrix versions. --- .github/workflows/tests-ast.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests-ast.yml b/.github/workflows/tests-ast.yml index 1e32d66..823e346 100644 --- a/.github/workflows/tests-ast.yml +++ b/.github/workflows/tests-ast.yml @@ -13,9 +13,18 @@ jobs: strategy: fail-fast: false matrix: - # Just using minimum and maximum to avoid exploding the matrix. - python-version: ['3.7', '3.12'] - antlr-version: ['4.7', '4.13'] + include: + # Build on the oldest and latest supported Pythons + # and on the oldest and latest ANTLR version supported + # by each of those Pythons: + - python-version: '3.9' + antlr-version: '4.7' + - python-version: '3.9' + antlr-version: '4.13' + - python-version: '3.13' + antlr-version: '4.9' + - python-version: '3.13' + antlr-version: '4.13' defaults: run: working-directory: source/openpulse From bc8e1867cc78a3d5e69d9c90c928d1c0ac5ef0fe Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Wed, 5 Mar 2025 17:25:05 +0100 Subject: [PATCH 2/3] Update black version to 24.10. --- source/openpulse/requirements-dev.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/openpulse/requirements-dev.txt b/source/openpulse/requirements-dev.txt index 0916b29..af5e250 100644 --- a/source/openpulse/requirements-dev.txt +++ b/source/openpulse/requirements-dev.txt @@ -1,4 +1,7 @@ pytest>=6.0 pyyaml pylint>=2.9 -black>=20.8b0 + +# Black uses calver majors for changes to the default style; +# we can allow updates within a given year. +black~=24.10 From fca0466f2b5a6a1b3b2881933e70f9a8e74ec5ea Mon Sep 17 00:00:00 2001 From: Simon Cross Date: Wed, 5 Mar 2025 17:25:34 +0100 Subject: [PATCH 3/3] Update black target Python version list to 3.7 to 3.13. --- source/openpulse/pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/openpulse/pyproject.toml b/source/openpulse/pyproject.toml index 7e9735a..d8ac863 100644 --- a/source/openpulse/pyproject.toml +++ b/source/openpulse/pyproject.toml @@ -3,4 +3,4 @@ requires = ["setuptools", "wheel"] [tool.black] line-length = 100 -target-version = ["py36"] +target-version = ["py37", "py38", "py39", "py310", "py311", "py312", "py313"]