@@ -117,10 +117,11 @@ def lint(session):
117117
118118 # 2. Check formatting
119119 session .run (
120- "ruff" , "format" ,
120+ "ruff" ,
121+ "format" ,
121122 "--check" ,
122123 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
123- "--line-length=88" ,
124+ "--line-length=88" ,
124125 * LINT_PATHS ,
125126 )
126127
@@ -130,12 +131,15 @@ def lint(session):
130131@nox .session (python = DEFAULT_PYTHON_VERSION )
131132def blacken (session ):
132133 """(Deprecated) Legacy session. Please use 'nox -s format'."""
133- session .log ("WARNING: The 'blacken' session is deprecated and will be removed in a future release. Please use 'nox -s format' in the future." )
134-
134+ session .log (
135+ "WARNING: The 'blacken' session is deprecated and will be removed in a future release. Please use 'nox -s format' in the future."
136+ )
137+
135138 # Just run the ruff formatter (keeping legacy behavior of only formatting, not sorting imports)
136139 session .install (RUFF_VERSION )
137140 session .run (
138- "ruff" , "format" ,
141+ "ruff" ,
142+ "format" ,
139143 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
140144 "--line-length=88" ,
141145 * LINT_PATHS ,
@@ -154,8 +158,10 @@ def format(session):
154158 # check --select I: Enables strict import sorting
155159 # --fix: Applies the changes automatically
156160 session .run (
157- "ruff" , "check" ,
158- "--select" , "I" ,
161+ "ruff" ,
162+ "check" ,
163+ "--select" ,
164+ "I" ,
159165 "--fix" ,
160166 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
161167 "--line-length=88" , # Standard Black line length
@@ -164,14 +170,14 @@ def format(session):
164170
165171 # 3. Run Ruff to format code
166172 session .run (
167- "ruff" , "format" ,
173+ "ruff" ,
174+ "format" ,
168175 f"--target-version=py{ ALL_PYTHON [0 ].replace ('.' , '' )} " ,
169176 "--line-length=88" , # Standard Black line length
170177 * LINT_PATHS ,
171178 )
172179
173180
174-
175181@nox .session (python = DEFAULT_PYTHON_VERSION )
176182def lint_setup_py (session ):
177183 """Verify that setup.py is valid (including RST check)."""
0 commit comments