Skip to content

Commit 8fe4ef6

Browse files
authored
Merge pull request #421 from python-semver/mypy-to-pyproject.toml
Add mypy config to pyproject.toml
2 parents 9b332b0 + 96d3095 commit 8fe4ef6

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ requires = [
1414
build-backend = "setuptools.build_meta"
1515

1616

17+
[tool.mypy]
18+
# ignore_missing_imports = true
19+
check_untyped_defs = true
20+
show_error_codes = true
21+
# strict = true
22+
pretty = true
23+
24+
1725
[tool.black]
1826
line-length = 88
1927
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)