Skip to content

Update compatible-mypy to 1.4.x #437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 27, 2023
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
5 changes: 4 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ check_untyped_defs = True
show_traceback = True
allow_redefinition = True
incremental = True
show_error_codes = False
disable_error_code = empty-body
# TODO: update our test error messages to match new mypy output
show_error_codes = False
force_uppercase_builtins = True
force_union_syntax = True

plugins =
mypy_django_plugin.main,
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ def find_stub_files(name: str) -> List[str]:
"types-PyYAML>=5.4.3",
]

# Keep compatible-mypy major.minor version pinned to what we use in CI (requirements.txt)
extras_require = {
"compatible-mypy": ["mypy>=1.3.0,<1.4"],
"compatible-mypy": ["mypy==1.4.*"],
"coreapi": ["coreapi>=2.0.0"],
"markdown": ["types-Markdown>=0.1.5"],
}
Expand Down
5 changes: 4 additions & 1 deletion tests/plugins.ini
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[mypy]
check_untyped_defs = True
show_error_codes = False
disable_error_code = empty-body
plugins =
mypy_django_plugin.main,
mypy_drf_plugin.main
# TODO: update our test error messages to match new mypy output
show_error_codes = False
force_uppercase_builtins = True
force_union_syntax = True

[mypy-coreapi]
ignore_missing_imports = True
Expand Down