@@ -118,10 +118,11 @@ def lint(session):
118118
119119 # 2. Check formatting
120120 session .run (
121- "ruff" , "format" ,
121+ "ruff" ,
122+ "format" ,
122123 "--check" ,
123124 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
124- "--line-length=88" ,
125+ "--line-length=88" ,
125126 * LINT_PATHS ,
126127 )
127128
@@ -131,12 +132,15 @@ def lint(session):
131132@nox .session (python = DEFAULT_PYTHON_VERSION )
132133def blacken (session ):
133134 """(Deprecated) Legacy session. Please use 'nox -s format'."""
134- session .log ("WARNING: The 'blacken' session is deprecated and will be removed in a future release. Please use 'nox -s format' in the future." )
135-
135+ session .log (
136+ "WARNING: The 'blacken' session is deprecated and will be removed in a future release. Please use 'nox -s format' in the future."
137+ )
138+
136139 # Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
137140 session .install (RUFF_VERSION )
138141 session .run (
139- "ruff" , "format" ,
142+ "ruff" ,
143+ "format" ,
140144 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
141145 "--line-length=88" ,
142146 * LINT_PATHS ,
@@ -155,8 +159,10 @@ def format(session):
155159 # check --select I: Enables strict import sorting
156160 # --fix: Applies the changes automatically
157161 session .run (
158- "ruff" , "check" ,
159- "--select" , "I" ,
162+ "ruff" ,
163+ "check" ,
164+ "--select" ,
165+ "I" ,
160166 "--fix" ,
161167 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
162168 "--line-length=88" , # Standard Black line length
@@ -165,14 +171,14 @@ def format(session):
165171
166172 # 3. Run Ruff to format code
167173 session .run (
168- "ruff" , "format" ,
174+ "ruff" ,
175+ "format" ,
169176 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
170177 "--line-length=88" , # Standard Black line length
171178 * LINT_PATHS ,
172179 )
173180
174181
175-
176182@nox .session (python = DEFAULT_PYTHON_VERSION )
177183def lint_setup_py (session ):
178184 """Verify that setup.py is valid (including RST check)."""
0 commit comments