Skip to content

chore(ci): test with Python 3.12 #352

chore(ci): test with Python 3.12

chore(ci): test with Python 3.12 #352

Triggered via pull request February 4, 2024 16:07
Status Failure
Total duration 3m 57s
Artifacts

ci.yml

on: pull_request
Matrix: lintrunner
Matrix: pytest
Release
0s
Release
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 20 warnings
lintrunner (ubuntu-latest, 3.12)
Process completed with exit code 1.
lintrunner (ubuntu-latest, 3.12)
Unable to upload "lintrunner.sarif" as it is not valid SARIF: - instance.runs[0].results[7].locations[0].physicalLocation.artifactLocation.uri is not of a type(s) string
PYLINT command-failed: null#L1
Linter exited with return code 1. STDOUT: STDERR: Traceback (most recent call last): Traceback (most recent call last): Traceback (most recent call last): File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pylint/lint/pylinter.py", line 1019, in get_ast return MANAGER.ast_from_file(filepath, modname, source=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/pylint/lint/pylinter.py", line 1019, in get_ast return MANAGER.ast_from_file(filepath, modname, source=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/manager.py", line 124, in ast_from_file return AstroidBuilder(self).file_build(filepath, modname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/builder.py", line 145, in file_build return self._post_build(module, builder, encoding) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/builder.py", line 173, in _post_build module = self._manager.visit_transforms(module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/manager.py", line 95, in visit_transforms return self._transform.visit(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/transforms.py", line 89, in visit return self._visit(module) ^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/transforms.py", line 54, in _visit visited = self._visit_generic(value) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/transforms.py", line 61, in _visit_generic return [self._visit_generic(child) for child in node] ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/transforms.py", line 67, in _visit_generic return self._visit(node) ^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/transforms.py", line 57, in _visit return self._transform(node) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/transforms.py", line 38, in _transform if predicate is None or predicate(node): ^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/brain/brain_namedtuple_enum.py", line 613, in _is_enum_subclass for klass in cls.mro() ^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/manager.py", line 124, in ast_from_file return AstroidBuilder(self).file_build(filepath, modname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 3043, in mro return self._compute_mro(context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 3012, in _compute_mro inferred_bases = list(self._inferred_bases(context=context)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2995, in _inferred_bases baseobj = next( ^^^^^ File "/opt/hostedtoolcache/Python/3.12.1/x64/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2995, in <genexpr> baseobj = next( ^
lintrunner (windows-latest, 3.12)
Process completed with exit code 1.
PYLINT command-failed: null#L1
Linter exited with return code 1. STDOUT: STDERR: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/pylint/lint/pylinter.py", line 1019, in get_ast return MANAGER.ast_from_file(filepath, modname, source=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/manager.py", line 124, in ast_from_file return AstroidBuilder(self).file_build(filepath, modname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/builder.py", line 145, in file_build return self._post_build(module, builder, encoding) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/builder.py", line 173, in _post_build module = self._manager.visit_transforms(module) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/manager.py", line 95, in visit_transforms return self._transform.visit(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/transforms.py", line 89, in visit return self._visit(module) ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/transforms.py", line 54, in _visit visited = self._visit_generic(value) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/transforms.py", line 61, in _visit_generic return [self._visit_generic(child) for child in node] ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/transforms.py", line 67, in _visit_generic return self._visit(node) ^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/transforms.py", line 57, in _visit return self._transform(node) ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/transforms.py", line 38, in _transform if predicate is None or predicate(node): ^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/brain/brain_namedtuple_enum.py", line 613, in _is_enum_subclass for klass in cls.mro() ^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 3043, in mro return self._compute_mro(context=context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 3012, in _compute_mro inferred_bases = list(self._inferred_bases(context=context)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2995, in _inferred_bases baseobj = next( ^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/nodes/scoped_nodes/scoped_nodes.py", line 2995, in <genexpr> baseobj = next( ^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/nodes/node_ng.py", line 182, in infer for i, result in enumerate(self._infer(context=context, **kwargs)): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/astroid/decorators.py", line 142, in raise_if_nothing_inferred yield next(generato
lintrunner (macos-latest, 3.12)
Process completed with exit code 1.
FLAKE8 E231: examples/pytorch/ufmt_linter.py#L56
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: lintrunner_adapters/adapters/pylint_linter.py#L84
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 W604: lintrunner_adapters/adapters/pylint_linter.py#L95
backticks are deprecated, use 'repr()' See https://www.flake8rules.com/rules/W604.html. To disable, use ` # noqa: W604`
FLAKE8 E231: lintrunner_adapters/adapters/pylint_linter.py#L132
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: lintrunner_adapters/adapters/toml_sort_linter.py#L65
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E222: examples/pytorch/s3_init.py#L83
multiple spaces after operator See https://www.flake8rules.com/rules/E222.html. To disable, use ` # noqa: E222`
FLAKE8 E231: examples/pytorch/black_linter.py#L136
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: examples/pytorch/newlines_linter.py#L73
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: examples/pytorch/newlines_linter.py#L111
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: lintrunner_adapters/adapters/black_linter.py#L75
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: lintrunner_adapters/adapters/ruff_fix_linter.py#L63
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: lintrunner_adapters/adapters/shellcheck_linter.py#L33
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E222: examples/pytorch/s3_init.py#L83
multiple spaces after operator See https://www.flake8rules.com/rules/E222.html. To disable, use ` # noqa: E222`
FLAKE8 E231: examples/pytorch/black_linter.py#L136
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E701: examples/pytorch/workflow_consistency_linter.py#L56
multiple statements on one line (colon) See https://www.flake8rules.com/rules/E701.html. To disable, use ` # noqa: E701`
FLAKE8 E231: examples/pytorch/workflow_consistency_linter.py#L56
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: examples/pytorch/circleci_linter.py#L81
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: examples/pytorch/grep_linter.py#L88
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: examples/pytorch/grep_linter.py#L128
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`
FLAKE8 E231: examples/pytorch/grep_linter.py#L239
missing whitespace after ':' See https://www.flake8rules.com/rules/E231.html. To disable, use ` # noqa: E231`