diff --git a/.flake8 b/.flake8 index ba0d6d0..1d5a410 120000 --- a/.flake8 +++ b/.flake8 @@ -1 +1 @@ -./src/.flake8 \ No newline at end of file +./src/{% if odoo_version >= 13 %}.flake8{% endif %} \ No newline at end of file diff --git a/.isort.cfg b/.isort.cfg index 59c750c..debd98c 120000 --- a/.isort.cfg +++ b/.isort.cfg @@ -1 +1 @@ -./src/.isort.cfg \ No newline at end of file +./src/{% if odoo_version > 12 %}.isort.cfg{% endif %} \ No newline at end of file diff --git a/.prettierrc.yml b/.prettierrc.yml index 8bdcbd9..5094c31 120000 --- a/.prettierrc.yml +++ b/.prettierrc.yml @@ -1 +1 @@ -./src/.prettierrc.yml \ No newline at end of file +./src/{% if odoo_version > 12 %}.prettierrc.yml{% endif %} \ No newline at end of file diff --git a/src/{% if odoo_version < 13 %}.flake8.jinja{% endif %} b/src/{% if odoo_version < 13 %}.flake8.jinja{% endif %} new file mode 100644 index 0000000..b6afabb --- /dev/null +++ b/src/{% if odoo_version < 13 %}.flake8.jinja{% endif %} @@ -0,0 +1 @@ +{%- include "version-specific/mqt-compat/.flake8" %} diff --git a/src/.flake8.jinja b/src/{% if odoo_version >= 13 %}.flake8{% endif %} similarity index 76% rename from src/.flake8.jinja rename to src/{% if odoo_version >= 13 %}.flake8{% endif %} index 7cf57cc..e397e8e 100644 --- a/src/.flake8.jinja +++ b/src/{% if odoo_version >= 13 %}.flake8{% endif %} @@ -1,6 +1,3 @@ -{%- if odoo_version < 13 %} - {%- include "version-specific/mqt-compat/.flake8" %} -{%- else %} [flake8] max-line-length = 88 max-complexity = 16 @@ -13,4 +10,3 @@ select = C,E,F,W,B,B9 ignore = E203,E501,W503 per-file-ignores= __init__.py:F401 -{%- endif %}