Skip to content

Commit 0dd14f8

Browse files
committed
Insert mypy config into pyproject.tom
Insert mypy configuration into pyproject.toml and remove config options from tox.ini.
1 parent 50532e7 commit 0dd14f8

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

changelog.d/pr421.trivial.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Insert mypy configuration into :file:`pyproject.toml` and remove
2+
config options from :file:`tox.ini`.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ requires = [
1414
build-backend = "setuptools.build_meta"
1515

1616

17+
[tool.mypy]
18+
# ignore-missing-imports = true
19+
# check-untyped-defs = true
20+
# strict = true
21+
pretty = true
22+
1723

1824
[tool.black]
1925
line-length = 88

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ commands = flake8 {posargs:}
4949
description = Check code style
5050
basepython = python3
5151
deps = mypy
52-
commands = mypy {posargs:--ignore-missing-imports --check-untyped-defs src}
52+
commands = mypy {posargs:src}
5353

5454

5555
[testenv:docstrings]

0 commit comments

Comments
 (0)