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

:pencil: use odoo type for flake8

needed to avoid using flake8 for python 2 in odoo 11.0+
parent 0f63cdaa7f32
No related branches found
No related tags found
No related merge requests found
......@@ -189,9 +189,13 @@
c.has_option('odoo_scripts', 'load-language') and
c.get('odoo_scripts', 'load-language')) or None
postgresql_version = (
c.has_section('odoo_scripts') and
c.has_option('odoo_scripts', 'postgresql_version') and
c.get('odoo_scripts', 'postgresql_version')) or '9.6'
c.has_section('odoo_scripts') and
c.has_option('odoo_scripts', 'postgresql_version') and
c.get('odoo_scripts', 'postgresql_version')) or '9.6'
odoo_type = (
c.has_section('odoo_scripts') and
c.has_option('odoo_scripts', 'odoo_type') and
c.get('odoo_scripts', 'odoo_type')) or 'odoo7'
image = "%s/%s:latest" % (registry, project)
_logger.debug("Docker image: %s", image)
extensions = (
......@@ -255,7 +259,7 @@
args.append('--dbport')
args.append(dbport)
docker_dev_start.flake8()
docker_dev_start.flake8(odoo_type)
if start_postgresql:
args.append('--start-postgresql')
if recreate_db:
......
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