From e04090d6f92d8658c0eab6588c572c63e09caef3 Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Tue, 26 Dec 2023 15:09:21 +0200 Subject: [PATCH 1/2] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aee1d937..6ebaea8c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: language: node pass_filenames: false types: [python] - additional_dependencies: ["pyright@1.1.339"] + additional_dependencies: ["pyright"] args: - --project=pyproject.toml - repo: https://github.com/pycqa/pydocstyle From c08d96a015173331d161b5d5236d245e498abc2f Mon Sep 17 00:00:00 2001 From: Kallinteris Andreas <30759571+Kallinteris-Andreas@users.noreply.github.com> Date: Tue, 26 Dec 2023 17:10:20 +0200 Subject: [PATCH 2/2] add `pyright.reportUnboundVariable="warning"` option --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ecaf5295..3e482142 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,6 +113,7 @@ enableTypeIgnoreComments = true # This is required as the CI pre-commit does not download the module (i.e. numpy) # Therefore, we have to ignore missing imports - reportMissingImports = "none" +reportUnboundVariable = "warning" + reportGeneralTypeIssues = "none" # -> commented out raises 489 errors