mypy config added

This commit is contained in:
Nicolas 2025-04-12 11:09:26 +02:00
parent 3f13f8c2be
commit 61f431a534
1 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,7 @@ authors = [
] ]
description = "The pyhoff package allows easy accessing of Beckhoff and Wago terminals with python over ModBus TCP" description = "The pyhoff package allows easy accessing of Beckhoff and Wago terminals with python over ModBus TCP"
readme = "README.md" readme = "README.md"
requires-python = ">=3.8" requires-python = ">=3.9"
classifiers = [ classifiers = [
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License", "License :: OSI Approved :: MIT License",
@ -24,6 +24,20 @@ build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find] [tool.setuptools.packages.find]
where = ["src"] where = ["src"]
[project.optional-dependencies]
dev = [
"pytest", "flake8", "mypy"
]
[tool.mypy]
files = ["src"]
strict = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
no_implicit_optional = true
show_error_codes = true
[tool.pytest.ini_options] [tool.pytest.ini_options]
minversion = "6.0" minversion = "6.0"
addopts = "-ra -q" addopts = "-ra -q"