@@ -75,7 +75,7 @@ def precommit(session: Session) -> None:
7575def format_python (session : Session ) -> None :
7676 """Run Python code formatter (Ruff format)."""
7777 session .log ("Installing formatting dependencies..." )
78- session .install ("-e" , "." , "--group" , "dev " )
78+ session .install ("ruff " )
7979
8080 session .log (f"Running Ruff formatter check with py{ session .python } ." )
8181 session .run ("ruff" , "format" , * session .posargs )
@@ -96,7 +96,7 @@ def format_rust(session: Session) -> None:
9696def lint_python (session : Session ) -> None :
9797 """Run Python code linters (Ruff check, Pydocstyle rules)."""
9898 session .log ("Installing linting dependencies..." )
99- session .install ("-e" , "." , "--group" , "dev " )
99+ session .install ("ruff " )
100100
101101 session .log (f"Running Ruff check with py{ session .python } ." )
102102 session .run ("ruff" , "check" , "--fix" , "--verbose" )
@@ -117,7 +117,7 @@ def lint_rust(session: Session) -> None:
117117def typecheck (session : Session ) -> None :
118118 """Run static type checking (Pyright) on Python code."""
119119 session .log ("Installing type checking dependencies..." )
120- session .install ("-e" , "." , "--group" , "dev " )
120+ session .install ("pyright " )
121121
122122 session .log (f"Running Pyright check with py{ session .python } ." )
123123 session .run ("pyright" )
@@ -127,7 +127,7 @@ def typecheck(session: Session) -> None:
127127def security_python (session : Session ) -> None :
128128 """Run code security checks (Bandit) on Python code."""
129129 session .log ("Installing security dependencies..." )
130- session .install ("-e " , "." , "--group" , "dev " )
130+ session .install ("bandit " , "pip-audit " )
131131
132132 session .log (f"Running Bandit static security analysis with py{ session .python } ." )
133133 session .run ("bandit" , "-r" , PACKAGE_NAME , "-c" , "bandit.yml" , "-ll" )
0 commit comments