Skip to content

Commit 57cbf4d

Browse files
chore(deps): update dependency futures to v3.4.0 (#850)
* chore(deps): update dependency futures to v3.4.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent fbb1440 commit 57cbf4d

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

samples/samples/noxfile.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ def blacken(session: nox.sessions.Session) -> None:
180180
# format = isort + black
181181
#
182182

183-
184183
@nox.session
185184
def 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

279278
def _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):

samples/samples/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
google-cloud-spanner==3.22.2
2-
futures==3.3.0; python_version < "3"
2+
futures==3.4.0; python_version < "3"

0 commit comments

Comments
 (0)