From 1870e13d354d57f149aa655848ec70e02db8e49e Mon Sep 17 00:00:00 2001 From: foefl Date: Thu, 9 Jul 2026 08:34:38 +0200 Subject: [PATCH] update config for `Ruff` and `Pyright` --- pyproject.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 99ad7ea..023e2af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,16 @@ requires = ["pdm-backend", "Cython", "setuptools"] build-backend = "pdm.backend" +[tool.pyright] +typeCheckingMode = "basic" +pythonVersion = "3.11" +reportUnusedImport = "none" +reportUnusedVariable = "warning" +reportUnusedClass = "warning" +reportUnusedFunction = "warning" +reportPrivateUsage = "error" + + [tool.ruff] line-length = 94 indent-width = 4 @@ -26,7 +36,7 @@ quote-style = "double" skip-magic-trailing-comma = false [tool.ruff.lint] -select = ["E", "F", "I"] +select = ["E", "F", "I", "SLF"] [tool.ruff.lint.isort] extra-standard-library = ["typing_extensions"]