Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup-python-poetry/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
32 changes: 32 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dependabot tightens broad constraint

Medium Severity

versioning-strategy: increase always raises lower bounds to match new versions, so Dependabot would gradually tighten the intentionally broad squawk-cli = ">=2.0" constraint in pyproject.toml. That can conflict with consumers who pin their own squawk version via additional_dependencies.

Fix in Cursor Fix in Web

Triggered by learned rule: squawk-cli broad version constraint is intentional

Reviewed by Cursor Bugbot for commit 8cadea3. Configure here.

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"
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion squawk_alembic/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.5"
__version__ = "0.3.6"
Loading