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

:pencil: use constant instead of "odoo15"

parent 349a1a9110ef
No related branches found
No related tags found
2 merge requests!78🚑 fix conf2reST,!77Topic/default/pylint
......@@ -11,6 +11,8 @@
SECTION = "odoo_scripts"
OTHER_SOURCES_KEY = "other_sources"
ODOO_15 = "odoo15"
"""Value for odoo_type representing Odoo 15.0"""
_logger = logging.getLogger(__name__)
......@@ -186,7 +188,7 @@
"odoo10",
"odoo11",
"odoo13",
"odoo15",
ODOO_15,
):
if path:
_logger.info(
......
......@@ -8,7 +8,7 @@
import os
import sys
from .config import Config
from .config import ODOO_15, Config
from .docker_client import DockerClient
from .parsing import apply, basic_parser
......@@ -91,7 +91,7 @@
if odoo_type in ("odoo7", "odoo8", "odoo9", "odoo10"):
repository = "xcgd/flake8"
tag = "2"
elif odoo_type == "odoo15":
elif odoo_type == ODOO_15:
tag = "15.0"
else:
repository = "xcgd/flake8"
......
......@@ -10,7 +10,7 @@
import docker
from .config import Config
from .config import ODOO_15, Config
from .docker_client import DockerClient
from .parsing import apply, basic_parser
......@@ -110,7 +110,7 @@
# determine image to use based on odoo version
repository = "quay.orus.io/odoo/odoo"
if odoo_type == "odoo15":
if odoo_type == ODOO_15:
tag = "15.0"
# append the directory, needed with isort≥5.0.0
command.append(".")
......
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