fabiocaccamo/python-benedict

View on GitHub
[pre-commit.ci] pre-commit autoupdate #946
pre-commit-ci[bot] authored c8300981
complete00:00:23
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.json.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-radon:b695
b695: Pulling from codeclimate/codeclimate-radon
e00d546a75ad: Pulling fs layer
21f0a0866768: Pulling fs layer
cd9d3946aa16: Pulling fs layer
2e56add6654f: Pulling fs layer
6c87f215a2be: Pulling fs layer
c2b31566ca3d: Pulling fs layer
6c87f215a2be: Waiting
c2b31566ca3d: Waiting
2e56add6654f: Waiting
21f0a0866768: Verifying Checksum
21f0a0866768: Download complete
e00d546a75ad: Download complete
cd9d3946aa16: Verifying Checksum
cd9d3946aa16: Download complete
e00d546a75ad: Pull complete
6c87f215a2be: Verifying Checksum
6c87f215a2be: Download complete
c2b31566ca3d: Download complete
21f0a0866768: Pull complete
cd9d3946aa16: Pull complete
2e56add6654f: Verifying Checksum
2e56add6654f: Download complete
2e56add6654f: Pull complete
6c87f215a2be: Pull complete
c2b31566ca3d: Pull complete
Digest: sha256:dfeb7edc634b4e2f851f3c788f7c21bd8bae097d4c66af722c76a6ba51121f98
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-radon:b695
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-04-15T17:09:03.526774 #1]  INFO -- : Skipping file ./benedict/dicts/keypath/keypath_util.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
    f"Key should not contain keypath separator {separator!r}, found: {key!r}."
                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.686055 #1]  INFO -- : Skipping file ./benedict/dicts/__init__.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 153
    f"Invalid flatten separator: {separator!r}, "
                                                ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.699079 #1]  INFO -- : Skipping file ./benedict/dicts/keylist/keylist_util.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
    raise KeyError(f"Invalid key: {key!r}")
                                         ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.710840 #1]  INFO -- : Skipping file ./benedict/dicts/keylist/keylist_dict.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 35
    raise KeyError(f"Invalid keys: {keys!r}")
                                           ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.717226 #1]  INFO -- : Skipping file ./benedict/dicts/io/io_dict.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 43
    f"{error_traceback}\n"
                         ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.733653 #1]  INFO -- : Skipping file ./benedict/dicts/io/io_util.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
    raise ValueError(f"Invalid source: '{source}' (source not allowed).")
                                                                       ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.746019 #1]  INFO -- : Skipping file ./benedict/extras.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 _require_optional_dependencies(*, target, installed):
                                        ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.748447 #1]  INFO -- : Skipping file ./benedict/dicts/keyattr/keyattr_dict.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 30
    attr_message = f"{self.__class__.__name__!r} object has no attribute {attr!r}"
                                                                                 ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.764975 #1]  INFO -- : Skipping file ./benedict/exceptions.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 2
    def __init__(self, *, target):
                        ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.786810 #1]  INFO -- : Skipping file ./benedict/serializers/query_string.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
    raise ValueError(f"Invalid query string: {s}")
                                                ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.826574 #1]  INFO -- : Skipping file ./benedict/serializers/xls.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 48
    f"Invalid sheet name {sheet_name!r}, sheet not found."
                                                         ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.865367 #1]  INFO -- : Skipping file ./benedict/serializers/cli.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 89
    raise ValueError from error
                        ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.909775 #1]  INFO -- : Skipping file ./benedict/serializers/__init__.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 71
    f".{extension}" for extension in _SERIALIZERS_BY_EXTENSION.keys()
                  ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.921384 #1]  INFO -- : Skipping file ./benedict/serializers/ini.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 69
    parser.set(default_section, key, f"{value}")
                                              ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.968412 #1]  INFO -- : Skipping file ./benedict/core/keylists.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
    keys[-1] += f"[{key}]"
                         ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:03.984213 #1]  INFO -- : Skipping file ./benedict/core/move.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 6
    f"Invalid key: {key_dest!r}, key already in "
                                                ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:04.071033 #1]  INFO -- : Skipping file ./benedict/core/match.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
    raise ValueError(f"Expected regex or string, found: {type(pattern)}")
                                                                       ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:04.112602 #1]  INFO -- : Skipping file ./benedict/core/flatten.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 7
    return f"{base_key}{separator}{key}"
                                       ^
SyntaxError: invalid syntax


I, [2024-04-15T17:09:04.118861 #1]  INFO -- : Skipping file ./benedict/core/keypaths.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 10
    kps = [separator.join([f"{key}" for key in kl]) for kl in kls]
                                  ^
SyntaxError: invalid syntax
7
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
64 [0.. 50.. [node_visitor]	INFO	Unable to find qualified name for module: setup.py
]
8
pep8
pep8 engine documentation
View output
.github/ benedict/ images/ setup.py
9
radon
radon engine documentation
View output
Running radon3...
10
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: Invalid character encountered in file '/code/images/python-benedict.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/images/python-benedict.psd' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 79 files indexed
ERROR: Unable to parse file: /code/benedict/dicts/io/io_dict.py
ERROR: Parse error at line 302 column 16:

  293: )
  294: 
  295:     def to_xls(
  296:         self,
  297:         key="values",
  298:         sheet=0,
  299:         columns=None,
  300:         columns_row=True,
  301:         format="xlsx",
  -->          **kwargs,
  303:     ):
  304:         """
  305:         Encode a list of dicts in the current dict instance in XLS format.
  306:         Encoder specific options can be passed using kwargs:
  307:         - https://openpyxl.readthedocs.io/ (for .xlsx and .xlsm files)
  308:         - https://pypi.org/project/xlrd/ (for .xls files)
  309:         Return the encoded string and optionally save it at 'filepath'.
  310:         A ValueError is raised in case of failure.
  311:         """
  312: 
  313: 
  314: 
  315: 
  316: 
  317:         raise NotImplementedError
  318: 
  319:     def to_yaml(self, **kwargs):
  320:         """
  321:         Encode the current dict instance in YAML format.
  322:         Encoder specific options can be passed using kwargs:
  323:         https://pyyaml.org/wiki/PyYAMLDocumentation
  324:         Return the encoded string and optionally save it at 'filepath'.
  325:         A ValueError is raised in case of failure.
  326:         """
  327:         return self._encode(self

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