summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-05-15 12:09:59 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-05-15 12:09:59 +0200
commit44833c79955d22e9f3f0a5b2fe659fc6c07fc8f3 (patch)
treedb5a68e71f1c33b6d47317c97bd2e22818960182
parent5caa8e41f7ad0db20a89eb9b741e75d45cbb283b (diff)
parentf4e58691c2e189a2fb9543737dda2cc874f3e1b4 (diff)
downloadredot-engine-44833c79955d22e9f3f0a5b2fe659fc6c07fc8f3.tar.gz
Merge pull request #91954 from Repiteo/scons/pyproject.toml
CI: Consolidate pysettings via `pyproject.toml`
-rw-r--r--.pre-commit-config.yaml3
-rw-r--r--misc/scripts/mypy.ini13
-rw-r--r--pyproject.toml16
3 files changed, 16 insertions, 16 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e59419ac08..5c0c0b6917 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -23,8 +23,6 @@ repos:
- id: black
files: (\.py$|SConstruct|SCsub)
types_or: [text]
- args:
- - --line-length=120
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.971
@@ -32,7 +30,6 @@ repos:
- id: mypy
files: \.py$
types_or: [text]
- args: [--config-file=./misc/scripts/mypy.ini]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
diff --git a/misc/scripts/mypy.ini b/misc/scripts/mypy.ini
deleted file mode 100644
index 45f048f118..0000000000
--- a/misc/scripts/mypy.ini
+++ /dev/null
@@ -1,13 +0,0 @@
-[mypy]
-ignore_missing_imports = True
-disallow_any_generics = True
-no_implicit_optional = True
-pretty = True
-show_column_numbers = True
-warn_redundant_casts = True
-warn_return_any = True
-warn_unreachable = True
-
-namespace_packages = True
-explicit_package_bases = True
-exclude = (?x)(^thirdparty)
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000000..f1ea10fbae
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,16 @@
+[tool.mypy]
+ignore_missing_imports = true
+disallow_any_generics = true
+no_implicit_optional = true
+pretty = true
+show_column_numbers = true
+warn_redundant_casts = true
+warn_return_any = true
+warn_unreachable = true
+namespace_packages = true
+explicit_package_bases = true
+exclude = ["thirdparty/"]
+
+[tool.black]
+line-length = 120
+extend-exclude = ".*thirdparty/.*"