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
4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@
"automergeSchedule": ["* * * * 2"]
},
"packageRules": [
{
"matchPackageNames": ["mypy"],
"rangeStrategy": "widen"
}
]
}
10 changes: 7 additions & 3 deletions .github/workflows/mypy_primer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ jobs:
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: pip install git+https://github.com/hauntsaninja/mypy_primer.git
run: |
uv venv
uv pip install git+https://github.com/hauntsaninja/mypy_primer.git
- name: Run mypy_primer
shell: bash
run: |
cd django-stubs_to_test
MYPY_VERSION=$(grep mypy== pyproject.toml | sed -n 's/ "mypy==\([^;]*\).*",/\1/p')
MYPY_VERSION=$(uv tree --package=mypy --depth=0 -q | sed -n 's/^mypy v\(.\+\)$/\1/p')

echo "new commit"
git checkout $GITHUB_SHA
Expand All @@ -50,7 +54,7 @@ jobs:
cd ..
# fail action if exit code isn't zero or one
(
mypy_primer \
uv run mypy_primer \
--new v${MYPY_VERSION} --old v${MYPY_VERSION} \
--known-dependency-selector django-stubs \
--old-prepend-path django-stubs_base --new-prepend-path django-stubs_to_test \
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ tests = [
"jinja2==3.1.6",
"pyyaml==6.0.3",
# typing:
"mypy==1.19.0",
Copy link
Collaborator Author

@intgr intgr Nov 29, 2025

Choose a reason for hiding this comment

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

I suspect this won't work well with "rangeStrategy": "widen"

Removed this pinning in tests dependency group, as now we have uv.lock to pin dev versions. And the lockfile is updated every week by Renovate already.

"django-stubs[compatible-mypy,oracle,redis]",
]
pyright = [
Expand Down
4 changes: 0 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading