From 31ba6389728640fb495b52848d65f0e920d8bb63 Mon Sep 17 00:00:00 2001 From: Stephen Brannen Date: Wed, 5 Aug 2026 15:17:37 -0500 Subject: [PATCH 1/2] chore: add Dependabot and test across Python 3.10-3.14 Add .github/dependabot.yml for Python (Poetry, via pyproject.toml/poetry.lock) and GitHub Actions updates (weekly, grouped patch/minor, majors ignored). Declare 3.13 and 3.14 support via classifiers, default CI to Python 3.13, and add a test matrix exercising the full >=3.10 range (3.10-3.14), gating releases on it. Co-Authored-By: Claude Opus 4.8 --- .../actions/setup-python-poetry/action.yml | 2 +- .github/dependabot.yml | 32 +++++++++++++++++++ .github/workflows/ci.yml | 23 ++++++++++++- pyproject.toml | 2 ++ 4 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 .github/dependabot.yml diff --git a/.github/actions/setup-python-poetry/action.yml b/.github/actions/setup-python-poetry/action.yml index 5465170..8e0f040 100644 --- a/.github/actions/setup-python-poetry/action.yml +++ b/.github/actions/setup-python-poetry/action.yml @@ -5,7 +5,7 @@ inputs: python-version: description: Python version required: false - default: '3.12' + default: '3.13' install-dependencies: description: Whether to install project dependencies required: false diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..96f674e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,32 @@ +version: 2 +updates: + # Python dependencies (Poetry, via pyproject.toml + poetry.lock) with grouped + # patch/minor updates. Major bumps are ignored here and handled deliberately. + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 + semver-minor-days: 7 + semver-patch-days: 5 + open-pull-requests-limit: 5 + labels: + - "dependencies" + versioning-strategy: "increase" + groups: + python-packages: + patterns: + - "*" + update-types: ["patch", "minor"] + ignore: + - dependency-name: "*" + update-types: ["version-update:semver-major"] + + # GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependencies" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16dc8c5..6789dc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,8 +93,29 @@ jobs: --compare-branch=origin/main \ --fail-under=80 + test-matrix: + name: Tests (Python ${{ matrix.python-version }}) + runs-on: ubuntu-latest + timeout-minutes: 10 + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + + steps: + - name: Checkout code + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + + - name: Setup Python and Poetry + uses: ./.github/actions/setup-python-poetry + with: + python-version: ${{ matrix.python-version }} + + - name: Run tests + run: poetry run pytest tests/ -v + auto-tag: - needs: lint-and-test + needs: [lint-and-test, test-matrix] if: github.event_name == 'push' && needs.lint-and-test.outputs.code_changed == 'true' runs-on: ubuntu-latest timeout-minutes: 5 diff --git a/pyproject.toml b/pyproject.toml index a785ae3..400b225 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,6 +22,8 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ] [tool.poetry.dependencies] From 8cadea3f97c75e7cfbd37be3d6f1ac6a618d3d3d Mon Sep 17 00:00:00 2001 From: Stephen Brannen Date: Wed, 5 Aug 2026 15:21:56 -0500 Subject: [PATCH 2/2] chore: bump version to 0.3.6 --- pyproject.toml | 2 +- squawk_alembic/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 400b225..e96713c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "squawk-alembic" -version = "0.3.5" +version = "0.3.6" description = "Pre-commit hook to lint Alembic migration SQL with squawk" packages = [{include = "squawk_alembic"}] readme = "README.md" diff --git a/squawk_alembic/__init__.py b/squawk_alembic/__init__.py index a8d4557..d7b30e1 100644 --- a/squawk_alembic/__init__.py +++ b/squawk_alembic/__init__.py @@ -1 +1 @@ -__version__ = "0.3.5" +__version__ = "0.3.6"