vpoulailleau/python-dev-tools

View on GitHub
ignore more linter warnings #1372
Vincent Poulailleau authored 70af5840
complete00:00:16
Your first build completed successfully!

Congratulations

Your first build completed successfully!

See the Results

1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
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-05-08T08:47:52.119815 #1]  INFO -- : Skipping file ./python_dev_tools/whatalinter.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
    MAX_LINE_LENGTH: Final = 88
                   ^
SyntaxError: invalid syntax


I, [2024-05-08T08:47:52.126862 #1]  INFO -- : Skipping file ./python_dev_tools/whataformatter.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
    PYTHON_VERSION_REGEX: Final[str] = "py[0-9]+"
                        ^
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
8
pep8
pep8 engine documentation
View output
.github/ .vscode/ docs/ python_dev_tools/
9
radon
radon engine documentation
View output
Running radon3...
10
fixme
fixme engine documentation
11
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: 24 files indexed
ERROR: Unable to parse file: /code/python_dev_tools/whatalinter.py
ERROR: Parse error at line 23 column 15:

   15: import Any as Final                
   16:     else:
   17:         from typing import Final                        
   18: 
   19: else:
   20:     from typing import Any as Final                
   21: 
   22: 
  -->  MAX_LINE_LENGTH: Final = 88
   24: MAX_COMPLEXITY: Final = 10
   25: ERROR_CODE: Final = "WAL"
   26: 
   27: 
   28: class WhatALinter:
   29:     """WhatALinter flake8 plugin."""
   30: 
   31:     name = "whatalinter"
   32:     version =

ERROR: Unable to parse file: /code/python_dev_tools/whataformatter.py
ERROR: Parse error at line 15 column 20:

    7: import re
    8: import shutil
    9: import subprocess              
   10: import sys
   11: from contextlib import suppress
   12: from pathlib import Path
   13: from typing import Final, NamedTuple
   14: 
  -->  PYTHON_VERSION_REGEX: Final[str] = "py[0-9]+"
   16: 
   17: 
   18: class FormatterConfig(NamedTuple):
   19:     """Configuration of formatting tool."""
   20: 
   21:     name: str
   22:     path: str
   23:     cli_args: list[

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