From a25d24d321e7bacc9122968a86cd6cb1699db898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Mon, 30 Oct 2023 20:11:28 +0100 Subject: [PATCH] Smarter default for user_ruff question --- copier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copier.yml b/copier.yml index 944eadf..9e15d18 100644 --- a/copier.yml +++ b/copier.yml @@ -127,7 +127,7 @@ generate_requirements_txt: files. use_ruff: - default: no + default: "{% if odoo_version < 17.0 -%}no{% else %}yes{% endif %}" type: bool help: Use ruff and ruff-format instead of flake8, autoflake, pyupgrade, isort, black. when: "{{ odoo_version >= 14.0 }}"