]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
mypy: strict by default and python 3.11+
authorAleš Mrázek <ales.mrazek@nic.cz>
Tue, 30 Jun 2026 21:59:58 +0000 (23:59 +0200)
committerAleš Mrázek <ales.mrazek@nic.cz>
Tue, 30 Jun 2026 23:11:37 +0000 (01:11 +0200)
pyproject.toml

index 2fae681bcea13b096e68dcfa6e984de0092026ba..68f9e7e25681c9b05389529601f7411d0704272e 100644 (file)
@@ -208,17 +208,22 @@ skip-magic-trailing-comma = false
 line-ending = "auto"
 
 [tool.mypy]
-python_version = "3.8"
-disallow_any_generics = true
-disallow_subclassing_any = true
-disallow_untyped_calls = false
-disallow_untyped_decorators = true
+mypy_path = ["python"]
+python_version = "3.11"
+strict = true
+
+# Output
 pretty = true
 show_error_codes = true
-allow_redefinition = true
-disallow_untyped_defs = false
-strict_equality = true
-disallow_incomplete_defs = true
-check_untyped_defs = true
-implicit_reexport = false
-no_implicit_optional = true
+show_column_numbers = true
+show_error_context = true
+
+# Extra diagnostics
+warn_unused_configs = true
+warn_unreachable = true
+
+# Project layout
+namespace_packages = true
+explicit_package_bases = true
+
+enable_error_code = ["ignore-without-code"]