diff --git a/pyproject.toml b/pyproject.toml index 1281d4b..5edb2eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,36 +1,55 @@ [build-system] requires = [ - "pyTooling >= 5.0.0", - "setuptools >= 68.0.0", - "wheel >= 0.40.0" + "setuptools >= 68.0.0", + "wheel >= 0.40.0", + "pyTooling >= 5.0.0" ] build-backend = "setuptools.build_meta" [tool.black] line-length = 120 +[tool.mypy] +python_version = "3.11" +namespace_packages = true + +pretty = true +show_error_context = true + +html_report = "report/typing" + [tool.pytest.ini_options] # Don't set 'python_classes = *' otherwise, pytest doesn't search for classes # derived from unittest.Testcase python_files = "*" python_functions = "test_*" +filterwarnings = [ + "error::DeprecationWarning", + "error::PendingDeprecationWarning" +] [tool.coverage.run] branch = true omit = [ "*site-packages*", - "setup.py" + "setup.py", + "tests/*" ] [tool.coverage.report] -skip_covered = true +skip_covered = false skip_empty = true exclude_lines = [ + "pragma: no cover", "raise NotImplementedError" ] +omit = [ + "tests/*" +] [tool.coverage.html] directory = "report/coverage/html" +title="Code Coverage of pySVModel" [tool.coverage.xml] output = "report/coverage/coverage.xml"