@@ -171,11 +171,7 @@ def lint(session: nox.sessions.Session) -> None:
171
171
def blacken (session : nox .sessions .Session ) -> None :
172
172
"""Run black. Format code to uniform standard."""
173
173
session .install (BLACK_VERSION )
174
- python_files = [
175
- path
176
- for path in os .listdir ("." )
177
- if path .endswith (".py" ) or path .endswith ("experiment_tracking" )
178
- ]
174
+ python_files = [path for path in os .listdir ("." ) if path .endswith (".py" )]
179
175
180
176
session .run ("black" , * python_files )
181
177
@@ -184,7 +180,6 @@ def blacken(session: nox.sessions.Session) -> None:
184
180
# format = isort + black
185
181
#
186
182
187
-
188
183
@nox .session
189
184
def format (session : nox .sessions .Session ) -> None :
190
185
"""
@@ -234,7 +229,9 @@ def _session_tests(
234
229
235
230
if os .path .exists ("requirements-test.txt" ):
236
231
if os .path .exists ("constraints-test.txt" ):
237
- session .install ("-r" , "requirements-test.txt" , "-c" , "constraints-test.txt" )
232
+ session .install (
233
+ "-r" , "requirements-test.txt" , "-c" , "constraints-test.txt"
234
+ )
238
235
else :
239
236
session .install ("-r" , "requirements-test.txt" )
240
237
with open ("requirements-test.txt" ) as rtfile :
@@ -247,9 +244,9 @@ def _session_tests(
247
244
post_install (session )
248
245
249
246
if "pytest-parallel" in packages :
250
- concurrent_args .extend ([" --workers" , " auto" , " --tests-per-worker" , " auto" ])
247
+ concurrent_args .extend ([' --workers' , ' auto' , ' --tests-per-worker' , ' auto' ])
251
248
elif "pytest-xdist" in packages :
252
- concurrent_args .extend (["-n" , " auto" ])
249
+ concurrent_args .extend (['-n' , ' auto' ])
253
250
254
251
session .run (
255
252
"pytest" ,
@@ -279,7 +276,7 @@ def py(session: nox.sessions.Session) -> None:
279
276
280
277
281
278
def _get_repo_root () -> Optional [str ]:
282
- """Returns the root folder of the project."""
279
+ """ Returns the root folder of the project. """
283
280
# Get root of this repository. Assume we don't have directories nested deeper than 10 items.
284
281
p = Path (os .getcwd ())
285
282
for i in range (10 ):
0 commit comments