GitHub Action to lint Python code #1
Annotations
10 errors and 1 warning
Ruff:
tests/gtest/gtest/googletest/googlemock/scripts/fuse_gmock_files.py#L235
tests/gtest/gtest/googletest/googlemock/scripts/fuse_gmock_files.py:235:11: SyntaxError: Simple statements must be separated by newlines or semicolons
|
Ruff (E731):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L104
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:104:5: E731 Do not assign a `lambda` expression, use a `def`
|
Ruff (F841):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L629
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:629:17: F841 Local variable `name` is assigned to but never used
|
Ruff (F841):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L629
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:629:24: F841 Local variable `type_name` is assigned to but never used
|
Ruff (F841):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L863
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:863:9: F841 Local variable `unused_tokens` is assigned to but never used
|
Ruff (E731):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L933
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:933:13: E731 Do not assign a `lambda` expression, use a `def`
|
Ruff (F841):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L991
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:991:13: F841 Local variable `unused_open_paren` is assigned to but never used
|
Ruff (F841):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L1029
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:1029:17: F841 Local variable `unused_tokens` is assigned to but never used
|
Ruff (F841):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L1100
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:1100:17: F841 Local variable `tokens` is assigned to but never used
|
Ruff (E722):
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py#L1696
tests/gtest/gtest/googletest/googlemock/scripts/generator/cpp/ast.py:1696:5: E722 Do not use bare `except`
|
lint_python
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|