Skip to content

Commit 9c2e6ad

Browse files
authored
Renovate: mypy updates to widen accepted version range (#2921)
* Renovate: mypy updates to widen accepted version range * attempt to fix mypy_primer * try this * try again * Restore actions/setup-python * Try 'uv pip install' * Fix 'uv pip install' * Fix 'uv pip install'
1 parent f0147ce commit 9c2e6ad

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

.github/renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@
99
"automergeSchedule": ["* * * * 2"]
1010
},
1111
"packageRules": [
12+
{
13+
"matchPackageNames": ["mypy"],
14+
"rangeStrategy": "widen"
15+
}
1216
]
1317
}

.github/workflows/mypy_primer.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,17 @@ jobs:
2727
- uses: actions/setup-python@v6
2828
with:
2929
python-version: "3.12"
30+
- name: Install uv
31+
uses: astral-sh/setup-uv@v7
3032
- name: Install dependencies
31-
run: pip install git+https://github.com/hauntsaninja/mypy_primer.git
33+
run: |
34+
uv venv
35+
uv pip install git+https://github.com/hauntsaninja/mypy_primer.git
3236
- name: Run mypy_primer
3337
shell: bash
3438
run: |
3539
cd django-stubs_to_test
36-
MYPY_VERSION=$(grep mypy== pyproject.toml | sed -n 's/ "mypy==\([^;]*\).*",/\1/p')
40+
MYPY_VERSION=$(uv tree --package=mypy --depth=0 -q | sed -n 's/^mypy v\(.\+\)$/\1/p')
3741
3842
echo "new commit"
3943
git checkout $GITHUB_SHA
@@ -50,7 +54,7 @@ jobs:
5054
cd ..
5155
# fail action if exit code isn't zero or one
5256
(
53-
mypy_primer \
57+
uv run mypy_primer \
5458
--new v${MYPY_VERSION} --old v${MYPY_VERSION} \
5559
--known-dependency-selector django-stubs \
5660
--old-prepend-path django-stubs_base --new-prepend-path django-stubs_to_test \

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ tests = [
5555
"jinja2==3.1.6",
5656
"pyyaml==6.0.3",
5757
# typing:
58-
"mypy==1.19.0",
5958
"django-stubs[compatible-mypy,oracle,redis]",
6059
]
6160
pyright = [

uv.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)