Skip to content
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
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,24 @@ from-first=true
# import_heading_localfolder="Local"
known-local-folder=["fms_mo","tests"]
# extend-skip="fms_mo/_version.py"

[tool.mypy]
mypy_path = [""]
packages = ["fms_mo", "tests"]
disable_error_code = []
# TODO: tighten MyPy checks by enabling these checks over time.
check_untyped_defs = false
disallow_incomplete_defs = false
disallow_untyped_defs = false
warn_return_any = true
# honor excludes by not following there through imports
follow_imports = "silent"
exclude = []

[[tool.mypy.overrides]]
# packages without typing annotations, without stubs, or not available.
module = [
"datasets",
"huggingface_hub.*",
]
ignore_missing_imports = true
14 changes: 14 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ commands =
{envpython} -m pyspelling --config {toxinidir}/.spellcheck.yml --spellchecker aspell
allowlist_externals = sh

[testenv:mypy]
description = Python type checking with mypy
basepython = {[testenv:py3]basepython}
deps =
mypy>=1.10.0,<1.14
types-PyYAML
types-requests
types-tqdm
types-psutil
pytest
pydantic<=2.9.2
commands =
mypy {posargs}

[gh]
python =
3.11 = 3.11-{unitcov}
Expand Down
Loading