Skip to content

Commit 4fcb726

Browse files
authored
MPT-16714: update mypy config (#194)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> Closes [MPT-16714](https://softwareone.atlassian.net/browse/MPT-16714) - Update mypy hook revision from v1.17.0 to v1.19.0 in pre-commit configuration - Upgrade dev mypy dependency from 1.15.* to 1.19.* in pyproject.toml - Reorganize mypy configuration by consolidating settings (ignore_missing_imports, strict, local_partial_types, warn_unreachable) and adding exclude_gitignore = true, replacing the previous exclude = ["tests"] configuration <!-- end of auto-generated comment: release notes by coderabbit.ai --> [MPT-16714]: https://softwareone.atlassian.net/browse/MPT-16714?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2 parents 6fc5ea6 + 606c92c commit 4fcb726

3 files changed

Lines changed: 95 additions & 26 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ repos:
2929
additional_dependencies: [Flake8-pyproject, Flake8-AAA, wemake-python-styleguide==1.3.*]
3030

3131
- repo: https://github.com/pre-commit/mirrors-mypy
32-
rev: v1.17.0
32+
rev: v1.19.0
3333
hooks:
3434
- id: mypy
3535
args: ["--config-file=pyproject.toml", "."]

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dev = [
3232
"freezegun==1.5.*",
3333
"ipdb==0.13.*",
3434
"ipython==9.*",
35-
"mypy==1.15.*",
35+
"mypy==1.19.*",
3636
"pre-commit==4.2.*",
3737
"pyfakefs==5.10.*",
3838
"pytest==8.3.*",
@@ -250,11 +250,6 @@ pydocstyle.convention = "google"
250250

251251
[tool.mypy]
252252
# The mypy configurations: http://bit.ly/2zEl9WI
253-
ignore_missing_imports = true
254-
strict = true
255-
local_partial_types = true
256-
warn_unreachable = true
257-
258253
enable_error_code = [
259254
"truthy-bool",
260255
"truthy-iterable",
@@ -268,5 +263,9 @@ enable_error_code = [
268263
"unimported-reveal",
269264
"deprecated",
270265
]
271-
272266
exclude = ["tests"]
267+
exclude_gitignore = true
268+
ignore_missing_imports = true
269+
local_partial_types = true
270+
strict = true
271+
warn_unreachable = true

0 commit comments

Comments
 (0)