Skip to content

Commit c08afee

Browse files
authored
feat: updates python and dependency versions (#1826)
Updates the Python versions and versions of several of the primary tools listed in the install commands.
1 parent eba60f2 commit c08afee

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

noxfile.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,34 @@
1414

1515
import nox
1616

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)
1823
def generate_protos(session):
1924
session.install("grpcio-tools")
2025
session.run(
2126
"python", "-m", "grpc_tools.protoc", "-Isynthtool/protos", "--python_out=synthtool/protos", "synthtool/protos/metadata.proto", "synthtool/protos/preconfig.proto")
2227

23-
@nox.session(python=['3.6', '3.10'])
28+
@nox.session(python=PYTHON_VERSIONS)
2429
def blacken(session):
25-
session.install('black==22.3.0', 'click>8.0')
30+
session.install('black==23.3.0', 'click>8.0')
2631
session.run('black', 'synthtool', 'tests')
2732

2833

29-
@nox.session(python=['3.6', '3.10'])
34+
@nox.session(python=PYTHON_VERSIONS)
3035
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')
3237
session.run('pip', 'install', '-e', '.')
3338
session.run('pip', 'install', 'click>8.0')
3439
session.run('black', '--check', 'synthtool', 'tests')
3540
session.run('flake8', 'synthtool', 'tests')
3641
session.run('mypy', 'synthtool')
3742

3843

39-
@nox.session(python=['3.6', '3.10'])
44+
@nox.session(python=PYTHON_VERSIONS)
4045
def test(session):
4146
session.install('pytest', 'pytest-cov', 'requests_mock', 'watchdog', 'flake8')
4247
session.run('pip', 'install', '-e', '.')

tests/test_language_java.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def assert_valid_yaml(file):
9898

9999
# lint xml, yaml files
100100
# use os.walk because glob ignores hidden directories
101-
for (dirpath, _, filenames) in os.walk(workdir):
101+
for dirpath, _, filenames in os.walk(workdir):
102102
for file in filenames:
103103
(_, ext) = os.path.splitext(file)
104104
if ext == ".xml":

0 commit comments

Comments
 (0)