Skip to content

Commit

Permalink
Move mypy config over to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
madig committed Oct 20, 2024
1 parent 596ad65 commit 394ef8a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 36 deletions.
36 changes: 0 additions & 36 deletions mypy.ini

This file was deleted.

18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,21 @@ filterwarnings = [
"ignore::DeprecationWarning:fs",
"ignore::DeprecationWarning:pkg_resources",
]

[tool.mypy]
python_version = "3.8"
disallow_incomplete_defs = true
no_implicit_optional = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_unreachable = true
strict_equality = true

[[tool.mypy.overrides]]
module = "ufoLib2.*"
disallow_untyped_defs = true

[[tool.mypy.overrides]]
module = ["fontTools.*"]
ignore_missing_imports = true

0 comments on commit 394ef8a

Please sign in to comment.