From 61f431a5348ee6165f87113ec60e63c83f308851 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Sat, 12 Apr 2025 11:09:26 +0200 Subject: [PATCH] mypy config added --- pyproject.toml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3970e6d..3641c9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = [ ] description = "The pyhoff package allows easy accessing of Beckhoff and Wago terminals with python over ModBus TCP" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License", @@ -24,6 +24,20 @@ build-backend = "setuptools.build_meta" [tool.setuptools.packages.find] 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] minversion = "6.0" addopts = "-ra -q"