durandtibo/coola

View on GitHub
Bump polars from 1.17.1 to 1.18.0 #1808
dependabot[bot] authored 961144f0
complete00:00:14
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
WARNING: unknown engine or channel <codescan:stable>
WARNING: unknown engine or channel <cody:stable>
WARNING: unknown engine or channel <isort:stable>
WARNING: unknown engine or channel <proselint:stable>
WARNING: unknown engine or channel <protobuf:stable>
WARNING: unknown engine or channel <rustfmt:stable>
WARNING: unknown engine or channel <tfsec:stable>
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-12-31T14:16:25.161512 #1]  INFO -- : Skipping file ./dev/install.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 15
    def run_bash_command(cmd: str) -> None:
                            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.161567 #1]  INFO -- : Skipping file ./src/coola/summarization.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    def summary(value: Any, max_depth: int = 1, summarizer: BaseSummarizer | None = None) -> str:
                     ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.175649 #1]  INFO -- : Skipping file ./src/coola/random/default.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    registry: ClassVar[dict[str, BaseRandomManager]] = {}
            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.184059 #1]  INFO -- : Skipping file ./src/coola/random/random_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.187507 #1]  INFO -- : Skipping file ./src/coola/random/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    def get_rng_state(self) -> Any:
                            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.194907 #1]  INFO -- : Skipping file ./src/coola/random/numpy_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 41
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.198271 #1]  INFO -- : Skipping file ./src/coola/random/functional.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def get_rng_state() -> dict[str, Any]:
                        ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.209034 #1]  INFO -- : Skipping file ./src/coola/random/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def get_random_managers() -> dict[str, BaseRandomManager]:
                              ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.217738 #1]  INFO -- : Skipping file ./src/coola/random/torch_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.219765 #1]  INFO -- : Skipping file ./src/coola/utils/path.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def sanitize_path(path: Path | str) -> Path:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.228374 #1]  INFO -- : Skipping file ./src/coola/utils/version.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def compare_version(package: str, op: Callable, version: str) -> bool:
                               ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.230622 #1]  INFO -- : Skipping file ./src/coola/utils/imports.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 54
    def package_available(name: str) -> bool:
                              ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.239085 #1]  INFO -- : Skipping file ./src/coola/utils/format.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 38
    def repr_indent(original: Any, num_spaces: int = 2) -> str:
                            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.241300 #1]  INFO -- : Skipping file ./src/coola/utils/tensor.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    def get_available_devices() -> tuple[str, ...]:
                                ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.249374 #1]  INFO -- : Skipping file ./src/coola/utils/stats.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def quantile(values: Sequence[float | int], quantiles: Sequence[float]) -> list[float]:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.259731 #1]  INFO -- : Skipping file ./src/coola/utils/array.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    def to_array(data: Sequence | torch.Tensor | np.ndarray) -> np.ndarray:
                     ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.265442 #1]  INFO -- : Skipping file ./src/coola/utils/mapping.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def sort_by_keys(mapping: Mapping) -> dict:
                            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.270421 #1]  INFO -- : Skipping file ./src/coola/comparison.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    actual: Any,
          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.281127 #1]  INFO -- : Skipping file ./src/coola/nested/conversion.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def convert_to_dict_of_lists(seq_of_mappings: Sequence[Mapping]) -> dict[Hashable, list]:
                                                ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.287060 #1]  INFO -- : Skipping file ./src/coola/nested/mapping.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def get_first_value(data: Mapping) -> Any:
                            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.291775 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/shape.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    def shape(self) -> tuple[int, ...]:
                    ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.297758 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/data.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    def data(self) -> Any:
                   ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.302315 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 42
    def chain(self, handler: BaseEqualityHandler) -> BaseEqualityHandler:
                           ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.308369 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/pyarrow_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 56
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.312847 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/jax_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 51
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.318975 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/numpy_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 51
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.323522 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/equal.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    def equal(self, other: Any) -> bool:
                         ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.329655 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/pandas_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 60
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.334203 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/scalar.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 44
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.340212 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/sequence.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.344748 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/dtype.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    def dtype(self) -> Any:
                    ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.355327 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/torch_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 51
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.363066 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/mapping.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 41
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.365821 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/native.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 52
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.373634 #1]  INFO -- : Skipping file ./src/coola/equality/handlers/polars_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 74
    def __eq__(self, other: object) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.376262 #1]  INFO -- : Skipping file ./src/coola/equality/config.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    tester: BaseEqualityTester
          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.384244 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/default.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 46
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.387092 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/xarray_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 67
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.394904 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 39
    def __repr__(self) -> str:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.397818 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/pyarrow_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 56
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.405410 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/jax_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 54
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.408441 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/numpy_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 60
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.415828 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/pandas_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 65
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.419158 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/scalar.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 44
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.429667 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    def get_type_comparator_mapping() -> dict[type, BaseEqualityComparator]:
                                      ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.438601 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/torch_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 66
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.440367 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/collection.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 50
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.449157 #1]  INFO -- : Skipping file ./src/coola/equality/comparators/polars_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 65
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.451020 #1]  INFO -- : Skipping file ./src/coola/equality/testers/default.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    registry: ClassVar[dict[type, BaseEqualityComparator]] = {}
            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.459855 #1]  INFO -- : Skipping file ./src/coola/equality/testers/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def equal(self, actual: Any, expected: Any, config: EqualityConfig) -> bool:
                          ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.488174 #1]  INFO -- : Skipping file ./src/coola/formatters/default.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 46
    def __init__(self, max_characters: int = -1) -> None:
                                     ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.492420 #1]  INFO -- : Skipping file ./src/coola/formatters/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 33
    def clone(self) -> BaseFormatter:
                    ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.498726 #1]  INFO -- : Skipping file ./src/coola/formatters/numpy_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 47
    def __init__(self, show_data: bool = False) -> None:
                                ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.509161 #1]  INFO -- : Skipping file ./src/coola/formatters/torch_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    def __init__(self, show_data: bool = False) -> None:
                                ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.514046 #1]  INFO -- : Skipping file ./src/coola/reducers/registry.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    registry: ClassVar[dict[str, BaseReducer]] = {"native": NativeReducer()}
            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.519630 #1]  INFO -- : Skipping file ./src/coola/reducers/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 39
    def max(self, values: T) -> int | float:
                        ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.524793 #1]  INFO -- : Skipping file ./src/coola/reducers/numpy_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 49
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.535584 #1]  INFO -- : Skipping file ./src/coola/reducers/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def auto_reducer() -> BaseReducer:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.541701 #1]  INFO -- : Skipping file ./src/coola/reducers/torch_.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 49
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.546620 #1]  INFO -- : Skipping file ./src/coola/reducers/native.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def __str__(self) -> str:
                      ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.552102 #1]  INFO -- : Skipping file ./src/coola/reduction.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    def available_reducers(cls) -> tuple[str, ...]:
                                ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.557482 #1]  INFO -- : Skipping file ./src/coola/summarizers/summarizer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 73
    registry: ClassVar[dict[type[object], BaseFormatter]] = {
            ^
SyntaxError: invalid syntax


I, [2024-12-31T14:16:25.562524 #1]  INFO -- : Skipping file ./src/coola/summarizers/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 57
    value: Any,
         ^
SyntaxError: invalid syntax
7
fixme
fixme engine documentation
8
radon
radon engine documentation
View output
Running radon3...
9
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 106 files indexed
ERROR: Unable to parse file: /code/src/coola/random/default.py
ERROR: Parse error at line 37 column 12:

   11: repr_mapping, str_indent, str_mapping
   12: 
   13: if TYPE_CHECKING:
   14:     from collections.abc import Generator
   15: 
   16: 
   17: class RandomManager(BaseRandomManager):
   18:     r"""Implement the default random manager.
   19: 
   20:     By default, it is initialized with the following random managers:
   21: 
   22:     - ``'random'``: ``RandomRandomManager``
   23:     - ``'numpy'``: ``NumpyRandomManager`` if ``numpy`` is available
   24:     - ``'torch'``: ``TorchRandomManager`` if ``torch`` is available
   25: 
   26:     Example usage:
   27: 
   28:     ```pycon
   29: 
   30:     >>> from coola.random import RandomManager
   31:     >>> manager = RandomManager()
   32:     >>> manager.manual_seed(42)
   33: 
   34:     ```
   35:     """
   36: 
  -->      registry: ClassVar[dict[str, BaseRandomManager]] = {}
   38: 
   39:     def __repr__(self) -> str:
   40:         managers = dict(self

ERROR: Unable to parse file: /code/src/coola/utils/imports.py
ERROR: Parse error at line 896 column 20:

  873:     """Define a proxy module that lazily imports a module the first time
  874:     it is actually used.
  875: 
  876:     Args:
  877:         name: The fully-qualified module name to import.
  878: 
  879:     Example usage:
  880: 
  881:     ```pycon
  882: 
  883:     >>> from coola.utils.imports import LazyModule
  884:     >>> # Lazy version of import numpy as np
  885:     >>> np = LazyModule("numpy")
  886:     >>> # The module is imported the first time it is actually used.
  887:     >>> np.ones((2, 3))
  888:     array([[1., 1., 1.],
  889:            [1., 1., 1.]])
  890: 
  891:     ```
  892:     """
  893: 
  894:     def __init__(self, name: str) -> None:
  895:         super().__init__(name)
  -->          self._module: Any = None
  897: 
  898:     def __getattr__(self, item: str) -> Any:
  899:         if self._module is None:
  900:             

ERROR: Unable to parse file: /code/src/coola/comparison.py
ERROR: Parse error at line 27 column 0:

   22: float = 1e-5,
   23:     atol: float = 1e-8,
   24:     equal_nan: bool = False,
   25:     show_difference: bool = False,
   26:     tester: BaseEqualityTester | None = None,
  -->  ) -> bool:
   28:     r"""Indicate if two objects are equal within a tolerance.
   29: 
   30:     Args:
   31:         actual: The actual input.
   32:         expected: The expected input.
   33:         rtol: The relative tolerance parameter.
   34:         atol: The absolute tolerance parameter.
   35:         equal_nan: If ``True``, then two ``NaN``s  will be considered
   36:             as equal.
   37:         show_difference: If ``True``, it shows a difference between
   38:             the two objects if they are different. This parameter is
   39:             useful to find the difference between two objects.
   40:         tester: The equality tester. If ``None``,
   41:             ``EqualityTester`` is used.
   42: 
   43:     Returns:
   44:         ``True`` if the two objects are (element-wise) equal within a
   45:             tolerance, otherwise ``False``
   46: 
   47:     Example usage:
   48: 
   49:     ```pycon
   50: 
   51:     >>> import torch
   52:     >>> from coola import objects_are_allclose
   53:     >>> objects_are_allclose(
   54:     ...     [torch.ones(2, 3), torch.zeros(2)],
   55:     ...     [torch.ones(2, 3), torch.zeros(2)],
   56:     ... )
   57:     True
   58:     >>> objects_are_allclose(
   59:     ...     [torch.ones(2, 3), torch.ones(2)],
   60:     ...     [torch.ones(2, 3), torch.zeros(2)],
   61:     ... )
   62:     False
   63:     >>> objects_are_allclose(
   64:     ...     [torch.ones(2, 3) + 1e-7, torch.ones(2)],
   65:     ...     [torch.ones(2, 3), torch.ones(2) - 1e-7],
   66:     ...     rtol=0,
   67:     ...     atol=1e-8,
   68:     ... )
   69:     False
   70: 
   71:     ```
   72:     """
   73:     tester = tester or _tester
   74:     config = EqualityConfig(
   75:         tester=tester, show_difference=show_difference, equal_nan=equal_nan

ERROR: Unable to parse file: /code/src/coola/equality/config.py
ERROR: Parse error at line 18 column 10:

    8: typing import TYPE_CHECKING
    9: 
   10: if TYPE_CHECKING:
   11:     from coola.equality.testers import BaseEqualityTester
   12: 
   13: 
   14: @dataclass
   15: class EqualityConfig:
   16:     r"""Define the config to control the comparison rules."""
   17: 
  -->      tester: BaseEqualityTester
   19:     equal_nan: bool = False
   20:     atol: float = 0.0
   21:     rtol: float = 0.0
   22:     show_difference: bool = False
   23: EOF

ERROR: Unable to parse file: /code/src/coola/equality/testers/default.py
ERROR: Parse error at line 23 column 12:

   15: .equality.comparators.base import BaseEqualityComparator
   16: 
   17: logger = logging.getLogger(__name__)
   18: 
   19: 
   20: class EqualityTester(BaseEqualityTester):
   21:     """Implement the default equality tester."""
   22: 
  -->      registry: ClassVar[dict[type, BaseEqualityComparator]] = {}
   24: 
   25:     def __repr__(self) -> str:
   26:         return f"{self.__class__.__qualname__}(\n  {str_indent(str_mapping(self.registry))}\n)"
   27: 
   28:     @

ERROR: Unable to parse file: /code/src/coola/reducers/registry.py
ERROR: Parse error at line 19 column 12:

    7: BaseReducer
    8: from coola.reducers.native import NativeReducer
    9: from coola.utils.format import str_indent, str_mapping
   10: 
   11: 
   12: class ReducerRegistry:
   13:     """Implement the reducer registry.
   14: 
   15:     The registry is a class variable, so it is shared with all the
   16:     instances of this class.
   17:     """
   18: 
  -->      registry: ClassVar[dict[str, BaseReducer]] = {"native": NativeReducer()}
   20: 
   21:     def __repr__(self) -> str:
   22:         

ERROR: Unable to parse file: /code/src/coola/reduction.py
ERROR: Parse error at line 53 column 36:

   33: ()
   34: 
   35:     @classmethod
   36:     def check_reducer(cls, reducer: str) -> None:
   37:         r"""Check if the reducer is available.
   38: 
   39:         Args:
   40:             reducer: The reducer name.
   41: 
   42:         Raises:
   43:             RuntimeError: if the reducer is not available.
   44: 
   45:         Example usage:
   46: 
   47:         ```pycon
   48:         >>> from coola import Reduction
   49:         >>> Reduction.check_reducer("torch")
   50: 
   51:         ```
   52:         """
  -->          if reducer not in (reducers := cls.available_reducers()):
   54:             msg = f"Incorrect reducer {reducer}. Reducer should be one of {reducers}"
   55:             raise RuntimeError(msg)
   56: 
   57:         @classmethod
   58:     def initialize(cls

ERROR: Unable to parse file: /code/src/coola/summarizers/summarizer.py
ERROR: Parse error at line 73 column 12:

   22: coola.utils import is_numpy_available, is_torch_available
   23: from coola.utils.format import str_indent, str_mapping
   24: 
   25: 
   26: class Summarizer(BaseSummarizer):
   27:     """Implement the default summarizer.
   28: 
   29:     The registry is a class variable, so it is shared with all the
   30:     instances of this class.
   31: 
   32:     Example usage:
   33: 
   34:     ```pycon
   35: 
   36:     >>> from coola import Summarizer
   37:     >>> summarizer = Summarizer()
   38:     >>> summarizer
   39:     Summarizer(
   40:       (<class 'collections.abc.Mapping'>): MappingFormatter(max_items=5, num_spaces=2)
   41:       (<class 'collections.abc.Sequence'>): SequenceFormatter(max_items=5, num_spaces=2)
   42:       (<class 'dict'>): MappingFormatter(max_items=5, num_spaces=2)
   43:       (<class 'list'>): SequenceFormatter(max_items=5, num_spaces=2)
   44:       (<class 'object'>): DefaultFormatter(max_characters=-1)
   45:       (<class 'set'>): SetFormatter(max_items=5, num_spaces=2)
   46:       (<class 'tuple'>): SequenceFormatter(max_items=5, num_spaces=2)
   47:       (<class 'numpy.ndarray'>): NDArrayFormatter(show_data=False)
   48:       (<class 'torch.Tensor'>): TensorFormatter(show_data=False)
   49:     )
   50:     >>> print(summarizer.summary(1))
   51:     <class 'int'> 1
   52:     >>> print(summarizer.summary(["abc", "def"]))
   53:     <class 'list'> (length=2)
   54:       (0): abc
   55:       (1): def
   56:     >>> print(summarizer.summary([[0, 1, 2], {"key1": "abc", "key2": "def"}]))
   57:     <class 'list'> (length=2)
   58:       (0): [0, 1, 2]
   59:       (1): {'key1': 'abc', 'key2': 'def'}
   60:     >>> print(summarizer.summary([[0, 1, 2], {"key1": "abc", "key2": "def"}], max_depth=2))
   61:     <class 'list'> (length=2)
   62:       (0): <class 'list'> (length=3)
   63:           (0): 0
   64:           (1): 1
   65:           (2): 2
   66:       (1): <class 'dict'> (length=2)
   67:           (key1): abc
   68:           (key2): def
   69: 
   70:     ```
   71:     """
   72: 
  -->      registry: ClassVar[dict[type[object], BaseFormatter]] = {
   74:         Mapping: MappingFormatter(),
   75:         Sequence: SequenceFormatter(),
   76:         dict: MappingFormatter

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.761s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------