From 68a9ab2384d45cf1843c0cf32c61dd56e7b604ac Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Tue, 30 Jan 2024 10:55:49 -0500 Subject: [PATCH] build(deps): update pyright * Disable pyright complaints for mocks * Move `types/pyright` into renovate's pyright group --- .github/renovate.json5 | 2 +- pyproject.toml | 2 +- tests/unit/starbase/test_init.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 32cff51..a51c1e6 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -92,7 +92,7 @@ { // Pyright makes regular breaking changes in patch releases, so we separate these // and do them independently. - matchPackageNames: ["pyright"], + matchPackageNames: ["pyright", "types/pyright"], prPriority: -4 } ], diff --git a/pyproject.toml b/pyproject.toml index 7b20e1d..db69b64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ lint = [ ] types = [ "mypy[reports]==1.7.1", - "pyright==1.1.338", + "pyright==1.1.349", ] docs = [ "furo==2023.9.10", diff --git a/tests/unit/starbase/test_init.py b/tests/unit/starbase/test_init.py index d124894..ca98cfd 100644 --- a/tests/unit/starbase/test_init.py +++ b/tests/unit/starbase/test_init.py @@ -14,6 +14,7 @@ # You should have received a copy of the GNU General Public License along # with this program. If not, see . """Basic Starcraft package demo unit tests.""" +# pyright: reportFunctionMemberAccess=false from unittest import mock import starcraft