@@ -67,7 +67,7 @@ def unit(session):
6767 "grpcio-status" ,
6868 "proto-plus" ,
6969 )
70- session .install ("-e" , "." )
70+ # session.install("-e", ".")
7171 session .run (
7272 "py.test" ,
7373 * (
@@ -82,6 +82,7 @@ def unit(session):
8282 path .join ("tests" , "unit" ),
8383 ]
8484 ),
85+ external = True ,
8586 )
8687
8788
@@ -296,7 +297,7 @@ def showcase_library(
296297 }
297298 ]
298299 update_service_yaml = _add_python_settings (tmp_dir , python_settings )
299- session .run ("python" , "-c" f" { update_service_yaml } " )
300+ session .run ("python" , f "-c{ update_service_yaml } " )
300301 # END TODO section to remove.
301302 if retry_config :
302303 session .run (
@@ -765,7 +766,8 @@ def lint(session):
765766 "format" ,
766767 "--check" ,
767768 * LINT_PATHS ,
768- "--exclude" , RUFF_EXCLUDES ,
769+ "--exclude" ,
770+ RUFF_EXCLUDES ,
769771 )
770772
771773 # 3. Run Flake8
@@ -779,22 +781,25 @@ def lint(session):
779781@nox .session (python = "3.10" )
780782def blacken (session ):
781783 """Run ruff format.
782-
784+
783785 DEPRECATED: This session now uses Ruff instead of Black.
784786 It formats code style only (indentation, quotes, etc).
785787 """
786- session .log ("WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future." )
787-
788-
788+ session .log (
789+ "WARNING: The 'blacken' session is deprecated and will be removed in the next release. Please use 'nox -s format' in the future."
790+ )
791+
789792 session .install (RUFF_VERSION )
790-
793+
791794 # 1. Format Code (Replaces black)
792795 # We do NOT run 'ruff check --select I' here, preserving strict parity.
793796 session .run (
794797 "ruff" ,
795798 "format" ,
799+ "--line-length=88" , # Standard Black line length
796800 * LINT_PATHS ,
797- "--exclude" , RUFF_EXCLUDES ,
801+ "--exclude" ,
802+ RUFF_EXCLUDES ,
798803 )
799804
800805
0 commit comments