From 448398beb2dae728a0c67c429107799afb6a59b6 Mon Sep 17 00:00:00 2001 From: bbrzyski Date: Thu, 29 Aug 2024 11:34:53 +0200 Subject: [PATCH] Fix issue with missing dependencies in pyright nox session --- noxfile.py | 2 +- pyproject.toml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/noxfile.py b/noxfile.py index 4bbe6aef..c33a3c0e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -133,7 +133,6 @@ def doc_gen(session: nox.Session) -> None: @nox.session def pyright_check(session: nox.Session) -> None: # this is a wrapper for _pyright_check that installs dependencies - session.install(".[topwrap-parse]") session.install(".[tests]") compare_with_main = "compare" in session.posargs @@ -146,6 +145,7 @@ def pyright_check(session: nox.Session) -> None: @nox.session def _pyright_check(session: nox.Session) -> None: # this is not supposed to be called outright, use `pyright_check` + session.install(".") compare_with_main = "compare" in session.posargs # counting down errors on branch diff --git a/pyproject.toml b/pyproject.toml index b74d5d4d..4435ee8a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,6 @@ dependencies = [ "simpleeval", "typing_extensions", "marshmallow-dataclass[enum]", - "typing_extensions", "pygtrie", "pipeline_manager_backend_communication @ git+https://github.com/antmicro/kenning-pipeline-manager-backend-communication@eb690cfb7766bfbd85a4eff2a1e809573b8b72d0", "pipeline_manager @ git+https://github.com/antmicro/kenning-pipeline-manager@f45289d7073e885b5e3f461db9a8667807b69380", @@ -51,8 +50,8 @@ tests = [ "pytest-lazy-fixtures==1.0.1", "pyfakefs==5.3.5", "deepdiff==7.0.1", - "pyright", - "prettytable", + "pyright==1.1.378", + "prettytable==3.11.0", ] deploy = [ "build==1.2.1"