# HG changeset patch # User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr> # Date 1676286391 -3600 # Mon Feb 13 12:06:31 2023 +0100 # Node ID de54bc074c53e6ac5e6da1ea27873a513bafa81d # Parent 18662dcb726100e12ca6bf8a4b2d7f689dc603af ✨ Use colorized output for pylint diff --git a/NEWS.rst b/NEWS.rst --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,11 @@ History ======= +18.1.0 +------ + +Use pylint colorized output. + 18.0.1 ------ diff --git a/odoo_scripts/docker_pylint.py b/odoo_scripts/docker_pylint.py --- a/odoo_scripts/docker_pylint.py +++ b/odoo_scripts/docker_pylint.py @@ -13,9 +13,9 @@ from .docker_client import DockerClient, anthem_mounts, modules_mount from .parsing import apply, basic_parser -__version__ = "1.1.0" +__version__ = "1.2.0" __date__ = "2022-01-26" -__updated__ = "2022-04-20" +__updated__ = "2023-02-13" _logger = logging.getLogger(__name__) @@ -71,7 +71,7 @@ return apply_pylint(nmspc) -def pylint(modules: str, build_options: List[str]): +def pylint(modules: List[str], build_options: List[str]): """Run pylint""" config = Config() mounts: List[Mount] @@ -90,14 +90,13 @@ build_local_image(build_options) - _logger.info("Running pylint") + _logger.info("Running pylint on %s", modules) return DockerClient.run( config.local_image, config.local_tag, { "entrypoint": "pylint", - # "command": modules + ["--load-plugins=pylint_odoo"], - "command": modules, + "command": ["--output-format=colorized"] + modules, # needed to write in the cache "user": "root", "mounts": mounts,