From 7508d70364e39ab17c4c36a5c8d5c98286f1b93e Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Tue, 28 Oct 2025 08:10:40 +0100 Subject: [PATCH] added proxpi cache for faster CI build and more strict mypy type checking --- pyproject.toml | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 266cc2d..8ff9e20 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,18 +38,30 @@ dev = [ "pre-commit>=4.3.0", ] +[[tool.uv.index]] +name = "threadripper-proxpi-cache" +url = "http://10.0.0.2:5001/index/" +default = true + [project.scripts] energy-ingester = "energy_consumption_ingester.cli:main" [tool.hatch.build.targets.wheel] packages = ["src/energy_consumption_ingester"] -[tool.black] -line-length = 88 -target-version = ['py312'] - [tool.mypy] python_version = "3.12" -warn_return_any = true -warn_unused_configs = true -disallow_untyped_defs = true +warn_return_any = true # nudge to use stricter types +warn_unused_configs = true # nudge to remove unused configs +disallow_untyped_defs = true # disallow untyped function definitions +disallow_incomplete_defs = true # ensure all parts of a function has type annotation +check_untyped_defs = true # dont skip untyped functions +disallow_untyped_decorators = false # allow untyped decorators to keep code more readable +no_implicit_optional = true # disallow implicit optional types leading to None-mess +warn_redundant_casts = true # nudge to use explicit type casts +warn_unused_ignores = true # nudge to remove unused ignores +warn_no_return = true # catch missing return statements +warn_unreachable = true # catch unreachable code +show_error_codes = true # show error codes in output +explicit_package_bases = true # reduce risk of import confusion +namespace_packages = true # enable namespace packages