File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 31
31
"setup.py" ,
32
32
]
33
33
34
+ DEFAULT_PYTHON_VERSION = "3.10"
35
+
34
36
test_dependencies = [
35
37
"django>=2.0.0" ,
36
38
"google-auth" ,
45
47
"coverage" ,
46
48
]
47
49
50
+ nox .options .sessions = [
51
+ # TODO(https://github.com/googleapis/google-api-python-client/issues/2622):
52
+ # Remove or restore testing for Python 3.7/3.8
53
+ "unit-3.9" ,
54
+ "unit-3.10" ,
55
+ "unit-3.11" ,
56
+ "unit-3.12" ,
57
+ "unit-3.13" ,
58
+ "lint" ,
59
+ "format" ,
60
+ "scripts" ,
61
+ ]
62
+
63
+ # Error if a python version is missing
64
+ nox .options .error_on_missing_interpreters = True
65
+
48
66
49
- @nox .session (python = [ "3.7" ] )
67
+ @nox .session (python = DEFAULT_PYTHON_VERSION )
50
68
def lint (session ):
51
69
session .install ("flake8" )
52
70
session .run (
@@ -60,7 +78,7 @@ def lint(session):
60
78
)
61
79
62
80
63
- @nox .session (python = "3.8" )
81
+ @nox .session (python = DEFAULT_PYTHON_VERSION )
64
82
def format (session ):
65
83
"""
66
84
Run isort to sort imports. Then run black
@@ -128,7 +146,7 @@ def unit(session, oauth2client):
128
146
)
129
147
130
148
131
- @nox .session (python = [ "3.9" ] )
149
+ @nox .session (python = DEFAULT_PYTHON_VERSION )
132
150
def scripts (session ):
133
151
session .install (* test_dependencies )
134
152
session .install ("-e" , "." )
You can’t perform that action at this time.
0 commit comments