|
22 | 22 | import pathlib
|
23 | 23 | import re
|
24 | 24 | import shutil
|
| 25 | +from typing import Dict, List |
25 | 26 | import warnings
|
26 | 27 |
|
27 | 28 | import nox
|
28 | 29 |
|
29 | 30 | FLAKE8_VERSION = "flake8==6.1.0"
|
30 |
| -BLACK_VERSION = "black==22.3.0" |
31 |
| -ISORT_VERSION = "isort==5.10.1" |
| 31 | +BLACK_VERSION = "black[jupyter]==23.7.0" |
| 32 | +ISORT_VERSION = "isort==5.11.0" |
32 | 33 | LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
|
33 | 34 |
|
34 | 35 | DEFAULT_PYTHON_VERSION = "3.8"
|
35 | 36 |
|
36 |
| -UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] |
| 37 | +UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11"] |
37 | 38 | UNIT_TEST_STANDARD_DEPENDENCIES = [
|
38 | 39 | "mock",
|
39 | 40 | "asyncmock",
|
40 | 41 | "pytest",
|
41 | 42 | "pytest-cov",
|
42 | 43 | "pytest-asyncio",
|
43 | 44 | ]
|
44 |
| -UNIT_TEST_EXTERNAL_DEPENDENCIES = [] |
45 |
| -UNIT_TEST_LOCAL_DEPENDENCIES = [] |
46 |
| -UNIT_TEST_DEPENDENCIES = [] |
47 |
| -UNIT_TEST_EXTRAS = [] |
48 |
| -UNIT_TEST_EXTRAS_BY_PYTHON = {} |
49 |
| - |
50 |
| -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] |
51 |
| -SYSTEM_TEST_STANDARD_DEPENDENCIES = [ |
| 45 | +UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] |
| 46 | +UNIT_TEST_LOCAL_DEPENDENCIES: List[str] = [] |
| 47 | +UNIT_TEST_DEPENDENCIES: List[str] = [] |
| 48 | +UNIT_TEST_EXTRAS: List[str] = [] |
| 49 | +UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} |
| 50 | + |
| 51 | +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8"] |
| 52 | +SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ |
52 | 53 | "mock",
|
53 | 54 | "pytest",
|
54 | 55 | "google-cloud-testutils",
|
55 | 56 | ]
|
56 |
| -SYSTEM_TEST_EXTERNAL_DEPENDENCIES = [] |
57 |
| -SYSTEM_TEST_LOCAL_DEPENDENCIES = [] |
58 |
| -SYSTEM_TEST_DEPENDENCIES = [] |
59 |
| -SYSTEM_TEST_EXTRAS = [] |
60 |
| -SYSTEM_TEST_EXTRAS_BY_PYTHON = {} |
| 57 | +SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] |
| 58 | +SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = [] |
| 59 | +SYSTEM_TEST_DEPENDENCIES: List[str] = [] |
| 60 | +SYSTEM_TEST_EXTRAS: List[str] = [] |
| 61 | +SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} |
61 | 62 |
|
62 | 63 | CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
|
63 | 64 |
|
|
70 | 71 | "lint_setup_py",
|
71 | 72 | "blacken",
|
72 | 73 | "docs",
|
| 74 | + "format", |
73 | 75 | ]
|
74 | 76 |
|
75 | 77 | # Error if a python version is missing
|
@@ -188,7 +190,6 @@ def unit(session):
|
188 | 190 |
|
189 | 191 |
|
190 | 192 | def install_systemtest_dependencies(session, *constraints):
|
191 |
| - |
192 | 193 | # Use pre-release gRPC for system tests.
|
193 | 194 | # Exclude version 1.52.0rc1 which has a known issue.
|
194 | 195 | # See https://github.com/grpc/grpc/issues/32163
|
|
0 commit comments