|
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_auth_oauthlib", "tests", "noxfile.py", "setup.py"]
|
32 | 34 |
|
33 | 35 | DEFAULT_PYTHON_VERSION = "3.8"
|
34 | 36 |
|
35 |
| -UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] |
| 37 | +UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] |
36 | 38 | UNIT_TEST_STANDARD_DEPENDENCIES = [
|
37 | 39 | "mock",
|
38 | 40 | "asyncmock",
|
39 | 41 | "pytest",
|
40 | 42 | "pytest-cov",
|
41 | 43 | "pytest-asyncio",
|
42 | 44 | ]
|
43 |
| -UNIT_TEST_EXTERNAL_DEPENDENCIES = [ |
| 45 | +UNIT_TEST_EXTERNAL_DEPENDENCIES: List[str] = [ |
44 | 46 | "click",
|
45 | 47 | ]
|
46 |
| -UNIT_TEST_LOCAL_DEPENDENCIES = [] |
47 |
| -UNIT_TEST_DEPENDENCIES = [] |
48 |
| -UNIT_TEST_EXTRAS = [] |
49 |
| -UNIT_TEST_EXTRAS_BY_PYTHON = {} |
| 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]] = {} |
50 | 52 |
|
51 |
| -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] |
52 |
| -SYSTEM_TEST_STANDARD_DEPENDENCIES = [ |
| 53 | +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8"] |
| 54 | +SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [ |
53 | 55 | "mock",
|
54 | 56 | "pytest",
|
55 | 57 | "google-cloud-testutils",
|
56 | 58 | ]
|
57 |
| -SYSTEM_TEST_EXTERNAL_DEPENDENCIES = [] |
58 |
| -SYSTEM_TEST_LOCAL_DEPENDENCIES = [] |
59 |
| -SYSTEM_TEST_DEPENDENCIES = [] |
60 |
| -SYSTEM_TEST_EXTRAS = [] |
61 |
| -SYSTEM_TEST_EXTRAS_BY_PYTHON = {} |
| 59 | +SYSTEM_TEST_EXTERNAL_DEPENDENCIES: List[str] = [] |
| 60 | +SYSTEM_TEST_LOCAL_DEPENDENCIES: List[str] = [] |
| 61 | +SYSTEM_TEST_DEPENDENCIES: List[str] = [] |
| 62 | +SYSTEM_TEST_EXTRAS: List[str] = [] |
| 63 | +SYSTEM_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} |
62 | 64 |
|
63 | 65 | CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
|
64 | 66 |
|
|
71 | 73 | "lint_setup_py",
|
72 | 74 | "blacken",
|
73 | 75 | "docs",
|
| 76 | + "format", |
74 | 77 | ]
|
75 | 78 |
|
76 | 79 | # Error if a python version is missing
|
@@ -189,7 +192,6 @@ def unit(session):
|
189 | 192 |
|
190 | 193 |
|
191 | 194 | def install_systemtest_dependencies(session, *constraints):
|
192 |
| - |
193 | 195 | # Use pre-release gRPC for system tests.
|
194 | 196 | # Exclude version 1.52.0rc1 which has a known issue.
|
195 | 197 | # See https://github.com/grpc/grpc/issues/32163
|
|
0 commit comments