Update mypy/c (#4450)

This commit is contained in:
Shantanu 2024-09-07 17:32:47 -07:00 committed by GitHub
parent 9e13708be8
commit 26aeebe9fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View File

@ -39,7 +39,7 @@ repos:
exclude: ^src/blib2to3/ exclude: ^src/blib2to3/
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1 rev: v1.11.2
hooks: hooks:
- id: mypy - id: mypy
exclude: ^(docs/conf.py|scripts/generate_schema.py)$ exclude: ^(docs/conf.py|scripts/generate_schema.py)$

View File

@ -30,6 +30,8 @@
<!-- Changes to how Black is packaged, such as dependency requirements --> <!-- Changes to how Black is packaged, such as dependency requirements -->
- Upgrade version of mypyc used to 1.11.2 (#4450)
### Parser ### Parser
<!-- Changes to the parser or to version autodetection --> <!-- Changes to the parser or to version autodetection -->

View File

@ -129,8 +129,8 @@ macos-max-compat = true
enable-by-default = false enable-by-default = false
dependencies = [ dependencies = [
"hatch-mypyc>=0.16.0", "hatch-mypyc>=0.16.0",
"mypy==1.7.1", "mypy==1.11.2",
"click==8.1.3", # avoid https://github.com/pallets/click/issues/2558 "click>=8.1.7",
] ]
require-runtime-dependencies = true require-runtime-dependencies = true
exclude = [ exclude = [
@ -193,8 +193,10 @@ CC = "clang"
[tool.cibuildwheel.macos] [tool.cibuildwheel.macos]
build-frontend = { name = "build", args = ["--no-isolation"] } build-frontend = { name = "build", args = ["--no-isolation"] }
# Unfortunately, hatch doesn't respect MACOSX_DEPLOYMENT_TARGET # Unfortunately, hatch doesn't respect MACOSX_DEPLOYMENT_TARGET
# Note we don't have a good test for this sed horror, so if you futz with it
# make sure to test manually
before-build = [ before-build = [
"python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy==1.7.1' 'click==8.1.3'", "python -m pip install 'hatchling==1.20.0' hatch-vcs hatch-fancy-pypi-readme 'hatch-mypyc>=0.16.0' 'mypy==1.11.2' 'click>=8.1.7'",
"""sed -i '' -e "600,700s/'10_16'/os.environ['MACOSX_DEPLOYMENT_TARGET'].replace('.', '_')/" $(python -c 'import hatchling.builders.wheel as h; print(h.__file__)') """, """sed -i '' -e "600,700s/'10_16'/os.environ['MACOSX_DEPLOYMENT_TARGET'].replace('.', '_')/" $(python -c 'import hatchling.builders.wheel as h; print(h.__file__)') """,
] ]