Skip to content

Commit

Permalink
Maintenance: Update mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jun 3, 2024
1 parent 8410979 commit bcac5a6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.770"
rev: "v1.10.0"
hooks:
- id: mypy
- repo: https://github.com/adrienverge/yamllint
Expand Down
12 changes: 12 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ target-version = ['py38']
requires = ["setuptools>=58", "wheel", "setuptools_scm>=6.2"]

[tool.setuptools_scm]

[tool.mypy]
packages = ["crate", "tests"]
check_untyped_defs = true
ignore_missing_imports = true
implicit_optional = false
install_types = true
non_interactive = true
show_error_codes = true
strict_equality = true
warn_unused_ignores = false
warn_redundant_casts = false
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def read(path: str) -> str:
"black==22.3.0",
"flake8==3.8.4",
"isort==5.12.0",
"mypy==0.770",
"mypy<2",
],
},
python_requires=">=3.8",
Expand Down

0 comments on commit bcac5a6

Please sign in to comment.