Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.d/pr421.trivial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Insert mypy configuration into :file:`pyproject.toml` and remove
config options from :file:`tox.ini`.
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ requires = [
build-backend = "setuptools.build_meta"


[tool.mypy]
# ignore_missing_imports = true
check_untyped_defs = true
show_error_codes = true
# strict = true
pretty = true


[tool.black]
line-length = 88
target-version = ['py37', 'py38', 'py39', 'py310', 'py311']
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ commands = flake8 {posargs:}
description = Check code style
basepython = python3
deps = mypy
commands = mypy {posargs:--ignore-missing-imports --check-untyped-defs src}
commands = mypy {posargs:src}


[testenv:docstrings]
Expand Down