fabiocaccamo/python-codicefiscale

View on GitHub
[pre-commit.ci] pre-commit autoupdate #704
pre-commit-ci[bot] authored a717bcf7
complete00:00:16
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:04.881811 #1]  INFO -- : Skipping file ./scripts/updatedata.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 9
    DATA_DIR: str = fsutil.join_path(__file__, "../codicefiscale/data/")
            ^
SyntaxError: invalid syntax


I, [2024-10-28T17:14:04.894373 #1]  INFO -- : Skipping file ./codicefiscale/codicefiscale.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
    _CONSONANTS: list[str] = list("bcdfghjklmnpqrstvwxyz")
               ^
SyntaxError: invalid syntax


I, [2024-10-28T17:14:04.895631 #1]  INFO -- : Skipping file ./codicefiscale/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 10
    def get_data_basedir() -> str:
                           ^
SyntaxError: invalid syntax


I, [2024-10-28T17:14:04.910428 #1]  INFO -- : Skipping file ./codicefiscale/__main__.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
    def main() -> None:
               ^
SyntaxError: invalid syntax


I, [2024-10-28T17:14:04.931002 #1]  INFO -- : Skipping file ./codicefiscale/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 10
    def _encode_from_args(args: argparse.Namespace) -> None:
                              ^
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
[node_visitor]	INFO	Unable to find qualified name for module: setup.py
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: Invalid character encountered in file '/code/images/python-codicefiscale.psd' 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-codicefiscale.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 31 files indexed
ERROR: Unable to parse file: /code/scripts/updatedata.py
ERROR: Parse error at line 9 column 8:

    1: from __future__ import annotations
    2: 
    3: from typing import Any
    4: 
    5: import fsutil
    6: from benedict import benedict
    7: from slugify import slugify
    8: 
  -->  DATA_DIR: str = fsutil.join_path(__file__, "../codicefiscale/data/")
   10: 
   11: 
   12: def _expect_keys(d: dict[str, Any], keys: list[str]

ERROR: Unable to parse file: /code/codicefiscale/data.py
ERROR: Parse error at line 39 column 8:

   35: | datetime | str | list[str]]]]]
   36: ):
   37:     municipalities = get_municipalities_data()
   38:     countries = get_countries_data()
  -->      data: dict[str, dict[str, list[dict[str, bool | datetime | str | list[str]]]]] =

ERROR: Unable to parse file: /code/codicefiscale/codicefiscale.py
ERROR: Parse error at line 15 column 11:

    7: import Any, Literal
    8: from re import Pattern
    9: 
   10: from dateutil import parser as date_parser
   11: from slugify import slugify
   12: 
   13: from codicefiscale.data import get_indexed_data
   14: 
  -->  _CONSONANTS: list[str] = list("bcdfghjklmnpqrstvwxyz")
   16: _VOWELS: list[str] = list("aeiou")
   17: _MONTHS: list[str] =

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