diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3108c30..ed725c6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,7 @@ repos: rev: v2.4.1 hooks: - id: prettier + exclude: ^copier.yml$ - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 hooks: diff --git a/copier.yml b/copier.yml index 5f191f7..38c0901 100644 --- a/copier.yml +++ b/copier.yml @@ -12,8 +12,7 @@ _envops: _tasks: # HACK: https://github.com/copier-org/copier/issues/461 - - if [ {{ ci }} == "Github" ]; then rm -f -- .travis.yml; elif [ {{ ci }} == "Travis" - ]; then rm -f -- .t2d.yml; fi + - rm -f {% if ci != "Travis" %}.travis.yml{% endif %} {% if ci != "GitHub" %}.t2d.yml{% endif %} odoo_version: type: float