Skip to content

Commit

Permalink
Move mypy config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jul 28, 2022
1 parent 1590917 commit 5d84d9a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions mypy.ini

This file was deleted.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,8 @@ profile = "attrs"
directory = "change"
name = "Changes"
showcontent = true


[tool.mypy]
disallow_untyped_defs = true
check_untyped_defs = true
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
and platform.python_implementation() != "PyPy"
):
EXTRAS_REQUIRE["tests_no_zope"].extend(
["mypy!=0.940", "pytest-mypy-plugins"]
["mypy>=0.900,!=0.940", "pytest-mypy-plugins"]
)

EXTRAS_REQUIRE["tests"] = EXTRAS_REQUIRE["tests_no_zope"] + ["zope.interface"]
Expand Down

0 comments on commit 5d84d9a

Please sign in to comment.