Skip to content
Snippets Groups Projects
Commit 3fec8f1df7ff authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:hammer: docker_black: on Odoo 11 projects, force the line length to 79

parent 6242e04fa74d
No related branches found
No related tags found
2 merge requests!17519.0.0,!174🔨 docker_black: on Odoo 11 projects, force the line length to 79
......@@ -2,6 +2,11 @@
History
=======
19.0.0
------
docker_black: on Odoo 11 projects, force the line length to 79.
18.1.0
------
......
......@@ -7,8 +7,8 @@
from argparse import ArgumentParser
from typing import List, Optional
from .config import Config
from .config import ODOO_11, Config
from .docker_build import add_build_options, build_local_image, get_build_options
from .docker_client import DockerClient
from .parsing import apply, basic_parser
......@@ -11,6 +11,6 @@
from .docker_build import add_build_options, build_local_image, get_build_options
from .docker_client import DockerClient
from .parsing import apply, basic_parser
__version__ = "1.0.1"
__version__ = "2.0.0"
__date__ = "2022-03-03"
......@@ -16,5 +16,5 @@
__date__ = "2022-03-03"
__updated__ = "2023-01-20"
__updated__ = "2023-02-21"
_logger = logging.getLogger(__name__)
_BLACK_DEST = "black"
......@@ -85,6 +85,8 @@
}
command = ["."]
if config.odoo_type == ODOO_11:
command.extend(("--line-length", "79"))
if not write:
command.extend(("--check", "--diff"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment