[PATCH b4 v2 01/11] Add CI script

Tamir Duberstein <[email protected]>
Newsgroups org.kernel.linux.tools
Message-ID <[email protected]>
Add a shell script that runs mypy. Skip submodule paths if they are
present and the misc directory which doesn't yet type check.

Signed-off-by: Tamir Duberstein <[email protected]>
---
 ci.sh          | 5 +++++
 pyproject.toml | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ci.sh b/ci.sh
new file mode 100755
index 0000000..89a5a80
--- /dev/null
+++ b/ci.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env sh
+
+set -eu
+
+uv run mypy .
diff --git a/pyproject.toml b/pyproject.toml
index c0c9935..867fcae 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -111,4 +111,5 @@ typeCheckingMode = "off"
 
 # Configure mypy in strict mode
 [tool.mypy]
+exclude = ["^ezgb/", "^liblore/", "^misc/", "^patatt/"]
 strict = true

-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.