From 499ba7e42342797fc8997424b0701840e770d79a Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Wed, 29 Nov 2023 10:40:09 +0000 Subject: [PATCH] Fix tests --- {{cookiecutter.package_name}}/.pre-commit-config.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.package_name}}/.pre-commit-config.yaml b/{{cookiecutter.package_name}}/.pre-commit-config.yaml index 72316ab..8241bf2 100644 --- a/{{cookiecutter.package_name}}/.pre-commit-config.yaml +++ b/{{cookiecutter.package_name}}/.pre-commit-config.yaml @@ -1,10 +1,11 @@ +{% if cookiecutter.create_docs == "yes" -%} +exclude: 'conf.py' +{%- endif %} + # Configuring https://pre-commit.ci/ ci: autoupdate_schedule: monthly -{% if cookiecutter.create_docs == "yes" -%} -exclude: 'conf.py' -{%- endif %} repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0