fabiocaccamo/python-benedict

View on GitHub
[pre-commit.ci] pre-commit autoupdate #1066
pre-commit-ci[bot] authored 597d695b
complete00:00:18
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
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-10-28T17:14:03.395201 #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-10-28T17:14:03.509538 #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-10-28T17:14:03.521379 #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-10-28T17:14:03.533916 #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-10-28T17:14:03.534513 #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-10-28T17:14:03.546710 #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-10-28T17:14:03.559543 #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-10-28T17:14:03.571182 #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-10-28T17:14:03.583066 #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-10-28T17:14:03.595064 #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-10-28T17:14:03.623486 #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-10-28T17:14:03.664475 #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-10-28T17:14:03.688020 #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-10-28T17:14:03.692318 #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-10-28T17:14:03.734918 #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-10-28T17:14:03.746506 #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-10-28T17:14:03.804572 #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-10-28T17:14:03.843776 #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-10-28T17:14:03.843980 #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.009s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------