From 7b1e6706e84068b64f00c779f7481023da026c11 Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Thu, 28 Nov 2024 23:36:20 +0100 Subject: [PATCH] FEATURE: Add pyright support --- .pre-commit-config.yaml | 5 +++++ pyproject.toml | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 454046f4..be69dd3a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,8 @@ repos: "--rcfile=.pylintrc", # Link to your config file ] stages: [pre-push] + + # - repo: https://github.com/RobertCraigie/pyright-python + # rev: v1.1.389 + # hooks: + # - id: pyright diff --git a/pyproject.toml b/pyproject.toml index 0c86959b..e8ba16aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -53,6 +53,7 @@ dev = [ "mock", "pyinstaller", "mypy", + "pyright", "github", ] @@ -208,4 +209,10 @@ strict_equality = true warn_unused_configs = true files = ["ardupilot_methodic_configurator/*.py"] -exclude = ["unittests"] \ No newline at end of file +exclude = ["unittests"] + +[tool.pyright] +exclude = [".venv"] +pythonVersion = "3.9" +venvPath = "." +venv = ".venv"