diff --git a/NEWS.rst b/NEWS.rst index 38bcf4740106d764c90173a4d5de4d7f249d82f5_TkVXUy5yc3Q=..f861a992cc83afe3db1c2829983a13eb4823ea1a_TkVXUy5yc3Q= 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -2,6 +2,11 @@ History ======= +7.0.6 +----- + +flake8 and isort are not run by default when running docker_dev_start. + 7.0.5 ----- diff --git a/odoo_scripts/docker_dev_start.py b/odoo_scripts/docker_dev_start.py index 38bcf4740106d764c90173a4d5de4d7f249d82f5_b2Rvb19zY3JpcHRzL2RvY2tlcl9kZXZfc3RhcnQucHk=..f861a992cc83afe3db1c2829983a13eb4823ea1a_b2Rvb19zY3JpcHRzL2RvY2tlcl9kZXZfc3RhcnQucHk= 100755 --- a/odoo_scripts/docker_dev_start.py +++ b/odoo_scripts/docker_dev_start.py @@ -156,5 +156,13 @@ help="Start a Postgresql docker", action="store_true", ) - parser.add_argument( + flake8_group = parser.add_mutually_exclusive_group() + flake8_group.add_argument( + "--flake8", + help="Run flake8", + action="store_true", + dest="flake8", + default=False, + ) + flake8_group.add_argument( "--no-flake8", @@ -160,4 +168,4 @@ "--no-flake8", - help="Do not run flake8", + help="Do not run flake8 [default]", action="store_false", dest="flake8", @@ -162,3 +170,4 @@ action="store_false", dest="flake8", + default=False, ) @@ -164,3 +173,11 @@ ) - parser.add_argument( + isort_group = parser.add_mutually_exclusive_group() + isort_group.add_argument( + "--isort", + help="Run isort", + action="store_true", + dest="isort", + default=False, + ) + isort_group.add_argument( "--no-isort", @@ -166,4 +183,4 @@ "--no-isort", - help="Do not run isort", + help="Do not run isort [default]", action="store_false", dest="isort", @@ -168,5 +185,6 @@ action="store_false", dest="isort", + default=False, ) parser.add_argument( "--odoo-help",