@@ -180,7 +180,6 @@ def blacken(session: nox.sessions.Session) -> None:
180180# format = isort + black
181181#
182182
183-
184183@nox .session
185184def format (session : nox .sessions .Session ) -> None :
186185 """
@@ -208,9 +207,7 @@ def _session_tests(
208207 session : nox .sessions .Session , post_install : Callable = None
209208) -> None :
210209 # check for presence of tests
211- test_list = glob .glob ("**/*_test.py" , recursive = True ) + glob .glob (
212- "**/test_*.py" , recursive = True
213- )
210+ test_list = glob .glob ("**/*_test.py" , recursive = True ) + glob .glob ("**/test_*.py" , recursive = True )
214211 test_list .extend (glob .glob ("**/tests" , recursive = True ))
215212
216213 if len (test_list ) == 0 :
@@ -232,7 +229,9 @@ def _session_tests(
232229
233230 if os .path .exists ("requirements-test.txt" ):
234231 if os .path .exists ("constraints-test.txt" ):
235- session .install ("-r" , "requirements-test.txt" , "-c" , "constraints-test.txt" )
232+ session .install (
233+ "-r" , "requirements-test.txt" , "-c" , "constraints-test.txt"
234+ )
236235 else :
237236 session .install ("-r" , "requirements-test.txt" )
238237 with open ("requirements-test.txt" ) as rtfile :
@@ -245,9 +244,9 @@ def _session_tests(
245244 post_install (session )
246245
247246 if "pytest-parallel" in packages :
248- concurrent_args .extend ([" --workers" , " auto" , " --tests-per-worker" , " auto" ])
247+ concurrent_args .extend ([' --workers' , ' auto' , ' --tests-per-worker' , ' auto' ])
249248 elif "pytest-xdist" in packages :
250- concurrent_args .extend (["-n" , " auto" ])
249+ concurrent_args .extend (['-n' , ' auto' ])
251250
252251 session .run (
253252 "pytest" ,
@@ -277,7 +276,7 @@ def py(session: nox.sessions.Session) -> None:
277276
278277
279278def _get_repo_root () -> Optional [str ]:
280- """Returns the root folder of the project."""
279+ """ Returns the root folder of the project. """
281280 # Get root of this repository. Assume we don't have directories nested deeper than 10 items.
282281 p = Path (os .getcwd ())
283282 for i in range (10 ):
0 commit comments