@@ -86,12 +86,14 @@ def lint_python(session: Session) -> None:
8686 session .run ("uvx" , "ruff" , "check" , "--fix" , "--verbose" )
8787
8888
89- @nox .parametrize (arg_names = "python_version" , arg_values_list = PYTHON_VERSIONS , ids = PYTHON_VERSIONS )
90- @nox .session (python = None , name = "typecheck" , tags = [TYPE , PYTHON , CI ])
91- def typecheck (session : Session , python_version : str ) -> None :
89+ @nox .session (python = PYTHON_VERSIONS , name = "typecheck" , tags = [TYPE , PYTHON , CI ])
90+ def typecheck (session : Session ) -> None :
9291 """Run static type checking (Pyright) on Python code."""
93- session .log (f"Running Pyright check with py{ python_version } ." )
94- session .run ("uvx" , "pyright" , "--pythonversion" , python_version )
92+ session .log ("Installing type checking dependencies..." )
93+ session .install ("-e" , "." , "--group" , "dev" )
94+
95+ session .log (f"Running Pyright check with py{ session .python } ." )
96+ session .run ("pyright" , "--pythonversion" , session .python )
9597
9698
9799@nox .session (python = None , name = "security-python" , tags = [SECURITY , PYTHON , CI ])
0 commit comments