Move mypy.ini and ruff.toml to top level
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 23 Nov 2024 11:58:47 +0000 (12:58 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 24 Nov 2024 15:47:20 +0000 (16:47 +0100)
This allows reusing them for integration-test-wrapper.py as well.

mypy.ini [new file with mode: 0644]
ruff.toml [new file with mode: 0644]
src/ukify/mypy.ini [deleted file]
src/ukify/ruff.toml [deleted file]

diff --git a/mypy.ini b/mypy.ini
new file mode 100644 (file)
index 0000000..c983616
--- /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
diff --git a/ruff.toml b/ruff.toml
new file mode 100644 (file)
index 0000000..6c0ec6c
--- /dev/null
+++ b/ruff.toml
@@ -0,0 +1,6 @@
+target-version = "py39"
+line-length = 109
+lint.select = ["E", "F", "I", "UP"]
+
+[format]
+quote-style = "single"
diff --git a/src/ukify/mypy.ini b/src/ukify/mypy.ini
deleted file mode 100644 (file)
index c983616..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-[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
diff --git a/src/ukify/ruff.toml b/src/ukify/ruff.toml
deleted file mode 100644 (file)
index 6c0ec6c..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-target-version = "py39"
-line-length = 109
-lint.select = ["E", "F", "I", "UP"]
-
-[format]
-quote-style = "single"