Skip to content

Commit c477d8f

Browse files
committed
Run Pylint on Python 3.10
1 parent 7fa0cdb commit c477d8f

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

sdks/python/test-suites/tox/py310/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
plugins { id 'org.apache.beam.module' }
2424
applyPythonNature()
2525

26+
toxTask "lintPy310", "py310-lint"
27+
lint.dependsOn lintPy310
28+
29+
toxTask "mypyPy310", "py310-mypy"
30+
lint.dependsOn mypyPy310
31+
2632
// Required to setup a Python 3 virtualenv and task names.
2733
pythonVersion = '3.10'
2834

sdks/python/tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ commands =
107107
{toxinidir}/scripts/run_pytest.sh {envname} "{posargs}" "--cov-report=xml --cov=. --cov-append"
108108
codecov -F python
109109

110-
[testenv:py37-lint]
110+
[testenv:py310-lint]
111111
# Don't set TMPDIR to avoid "AF_UNIX path too long" errors in pylint.
112112
setenv =
113113
# keep the version of pylint in sync with the 'rev' in .pre-commit-config.yaml
@@ -129,7 +129,7 @@ deps =
129129
commands =
130130
time {toxinidir}/scripts/run_whitespacelint.sh
131131

132-
[testenv:py37-mypy]
132+
[testenv:py310-mypy]
133133
deps =
134134
-r build-requirements.txt
135135
mypy==0.782

0 commit comments

Comments
 (0)