]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Configure pyright included files
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Mon, 22 Dec 2025 19:33:08 +0000 (20:33 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 22 Dec 2025 20:31:08 +0000 (21:31 +0100)
Let's configure the files on which pyright should run to avoid long
startup times where it tries to check every single file in the workspace
directory.

pyproject.toml

index d673857a0ba2c82f7e067d3be8b5bed42d55a511..74e92f4c3ee89882aa8ad65413ee53c4ad553f54 100644 (file)
@@ -54,6 +54,11 @@ py_version = "39"
 
 [tool.pyright]
 pythonVersion = "3.9"
+include = [
+    "mkosi/**/*.py",
+    "tests/**/*.py",
+    "kernel-install/*.install"
+]
 
 [tool.mypy]
 python_version = 3.9