summaryrefslogtreecommitdiffstats
path: root/mypy.ini
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-23 12:58:47 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-11-24 16:47:20 +0100
commita2aacbfad56c21b259fd36487d4e579176ac8967 (patch)
treed4fdf3a510dcb34fd46f1d1a5fd11accb7ccea52 /mypy.ini
parentintegration-test-wrapper: Remove unneeded format strings (diff)
downloadsystemd-a2aacbfad56c21b259fd36487d4e579176ac8967.tar.xz
systemd-a2aacbfad56c21b259fd36487d4e579176ac8967.zip
Move mypy.ini and ruff.toml to top level
This allows reusing them for integration-test-wrapper.py as well.
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini22
1 files changed, 22 insertions, 0 deletions
diff --git a/mypy.ini b/mypy.ini
new file mode 100644
index 0000000000..c9836169c1
--- /dev/null
+++ b/mypy.ini
@@ -0,0 +1,22 @@
+[mypy]
+python_version = 3.9
+# belonging to --strict
+warn_unused_configs = true
+disallow_any_generics = true
+disallow_subclassing_any = true
+disallow_untyped_calls = true
+disallow_untyped_defs = true
+disallow_untyped_decorators = true
+disallow_incomplete_defs = true
+check_untyped_defs = true
+no_implicit_optional = true
+warn_redundant_casts = true
+warn_unused_ignores = false
+warn_return_any = true
+no_implicit_reexport = true
+# extra options not in --strict
+pretty = true
+show_error_codes = true
+show_column_numbers = true
+warn_unreachable = true
+strict_equality = true