|
14 | 14 |
|
15 | 15 | import nox
|
16 | 16 |
|
17 |
| -@nox.session(python=['3.6', '3.10']) |
| 17 | +PYTHON_VERSIONS = ['3.8', '3.10'] |
| 18 | + |
| 19 | +# Error if a python version is missing |
| 20 | +nox.options.error_on_missing_interpreters = True |
| 21 | + |
| 22 | +@nox.session(python=PYTHON_VERSIONS) |
18 | 23 | def generate_protos(session):
|
19 | 24 | session.install("grpcio-tools")
|
20 | 25 | session.run(
|
21 | 26 | "python", "-m", "grpc_tools.protoc", "-Isynthtool/protos", "--python_out=synthtool/protos", "synthtool/protos/metadata.proto", "synthtool/protos/preconfig.proto")
|
22 | 27 |
|
23 |
| -@nox.session(python=['3.6', '3.10']) |
| 28 | +@nox.session(python=PYTHON_VERSIONS) |
24 | 29 | def blacken(session):
|
25 |
| - session.install('black==22.3.0', 'click>8.0') |
| 30 | + session.install('black==23.3.0', 'click>8.0') |
26 | 31 | session.run('black', 'synthtool', 'tests')
|
27 | 32 |
|
28 | 33 |
|
29 |
| -@nox.session(python=['3.6', '3.10']) |
| 34 | +@nox.session(python=PYTHON_VERSIONS) |
30 | 35 | def lint(session):
|
31 |
| - session.install('mypy==0.790', 'flake8', 'black==22.3.0') |
| 36 | + session.install('mypy==0.790', 'flake8', 'black==23.3.0') |
32 | 37 | session.run('pip', 'install', '-e', '.')
|
33 | 38 | session.run('pip', 'install', 'click>8.0')
|
34 | 39 | session.run('black', '--check', 'synthtool', 'tests')
|
35 | 40 | session.run('flake8', 'synthtool', 'tests')
|
36 | 41 | session.run('mypy', 'synthtool')
|
37 | 42 |
|
38 | 43 |
|
39 |
| -@nox.session(python=['3.6', '3.10']) |
| 44 | +@nox.session(python=PYTHON_VERSIONS) |
40 | 45 | def test(session):
|
41 | 46 | session.install('pytest', 'pytest-cov', 'requests_mock', 'watchdog', 'flake8')
|
42 | 47 | session.run('pip', 'install', '-e', '.')
|
|
0 commit comments