|
17 | 17 | # Generated by synthtool. DO NOT EDIT! |
18 | 18 |
|
19 | 19 | from __future__ import absolute_import |
| 20 | + |
20 | 21 | import os |
21 | 22 | import pathlib |
22 | 23 | import re |
23 | 24 | import shutil |
| 25 | +from typing import Dict, List |
24 | 26 | import warnings |
25 | 27 |
|
26 | 28 | import nox |
27 | 29 |
|
28 | 30 | FLAKE8_VERSION = "flake8==6.1.0" |
29 | | -BLACK_VERSION = "black==22.3.0" |
30 | | -ISORT_VERSION = "isort==5.10.1" |
| 31 | +BLACK_VERSION = "black[jupyter]==23.7.0" |
| 32 | +ISORT_VERSION = "isort==5.11.0" |
31 | 33 | LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] |
32 | 34 |
|
33 | 35 | MYPY_VERSION = "mypy==0.910" |
34 | 36 |
|
35 | 37 | DEFAULT_PYTHON_VERSION = "3.8" |
36 | 38 |
|
37 | | -UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 39 | +UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"] |
38 | 40 | UNIT_TEST_STANDARD_DEPENDENCIES = [ |
39 | 41 | "mock==5.0.0", |
40 | 42 | "asyncmock", |
41 | 43 | "pytest", |
42 | 44 | "pytest-cov", |
43 | 45 | "pytest-asyncio", |
44 | 46 | ] |
45 | | -UNIT_TEST_EXTERNAL_DEPENDENCIES = [] |
46 | | -UNIT_TEST_LOCAL_DEPENDENCIES = [] |
47 | | -UNIT_TEST_DEPENDENCIES = [] |
48 | | -UNIT_TEST_EXTRAS = [] |
49 | | -UNIT_TEST_EXTRAS_BY_PYTHON = {} |
50 | | - |
51 | | -SYSTEM_TEST_PYTHON_VERSIONS = ["3.10"] |
52 | | -SYSTEM_TEST_STANDARD_DEPENDENCIES = [ |
| 47 | +UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] |
| 48 | +UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = [] |
| 49 | +UNIT_TEST_DEPENDENCIES: List[str] = [] |
| 50 | +UNIT_TEST_EXTRAS: List[str] = [] |
| 51 | +UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} |
| 52 | + |
| 53 | +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.10"] |
| 54 | +SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ |
53 | 55 | "mock==5.0.0", |
54 | 56 | "pytest", |
55 | 57 | "google-cloud-testutils", |
56 | 58 | ] |
57 | | -SYSTEM_TEST_EXTERNAL_DEPENDENCIES = [ |
| 59 | +SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [ |
58 | 60 | "psutil", |
59 | 61 | "flaky", |
60 | 62 | ] |
61 | | -SYSTEM_TEST_LOCAL_DEPENDENCIES = [] |
62 | | -SYSTEM_TEST_DEPENDENCIES = [] |
63 | | -SYSTEM_TEST_EXTRAS = [] |
64 | | -SYSTEM_TEST_EXTRAS_BY_PYTHON = {} |
| 63 | +SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = [] |
| 64 | +SYSTEM_TEST_DEPENDENCIES: List[str] = [] |
| 65 | +SYSTEM_TEST_EXTRAS: List[str] = [] |
| 66 | +SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} |
65 | 67 |
|
66 | 68 | CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() |
67 | 69 |
|
|
77 | 79 | # https://github.com/googleapis/python-pubsub/pull/552#issuecomment-1016256936 |
78 | 80 | # "mypy_samples", # TODO: uncomment when the check passes |
79 | 81 | "docs", |
| 82 | + "format", |
80 | 83 | ] |
81 | 84 |
|
82 | 85 | # Error if a python version is missing |
@@ -240,7 +243,6 @@ def unit(session): |
240 | 243 |
|
241 | 244 |
|
242 | 245 | def install_systemtest_dependencies(session, *constraints): |
243 | | - |
244 | 246 | # Use pre-release gRPC for system tests. |
245 | 247 | # Exclude version 1.52.0rc1 which has a known issue. |
246 | 248 | # See https://github.com/grpc/grpc/issues/32163 |
|
0 commit comments