From ead521b37740b5c57cd1eb3bb3c6734424b0d2bb Mon Sep 17 00:00:00 2001 From: dw-0 Date: Mon, 14 Apr 2025 21:06:19 +0200 Subject: [PATCH] refactor: replace mypy with pyright Signed-off-by: Dominik Willner --- pyproject.toml | 13 +------------ pyrightconfig.json | 6 ++++++ requirements-dev.txt | 2 ++ 3 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 pyrightconfig.json create mode 100644 requirements-dev.txt diff --git a/pyproject.toml b/pyproject.toml index 002b70d..350b332 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ requires-python = ">=3.8" [project.optional-dependencies] -dev=["ruff", "mypy"] +dev=["ruff", "pyright"] [tool.ruff] required-version = ">=0.9.10" @@ -20,14 +20,3 @@ quote-style = "double" [tool.ruff.lint] extend-select = ["I"] - -[tool.mypy] -python_version = "3.8" -platform = "linux" -# strict = true # TODO: enable this once everything is else is handled -check_untyped_defs = true -ignore_missing_imports = true -warn_redundant_casts = true -warn_unused_ignores = true -warn_return_any = true -warn_unreachable = true diff --git a/pyrightconfig.json b/pyrightconfig.json new file mode 100644 index 0000000..b76cb57 --- /dev/null +++ b/pyrightconfig.json @@ -0,0 +1,6 @@ +{ + "pythonVersion": "3.8", + "pythonPlatform": "Linux", + "typeCheckingMode": "standard", + "venvPath": "./.kiauh-env" +} diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..93087ed --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,2 @@ +ruff (>=0.9.10) +pyright