Skip to content

Commit 6fe0a25

Browse files
committed
Insert mypy config into pyproject.tom
Insert mypy configuration into pyproject.toml and remove config options from tox.ini.
1 parent fda2873 commit 6fe0a25

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ 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+
23+
1724
[tool.black]
1825
line-length = 88
1926
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']

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)