From 90458e02dccea43fae197dcb9503509778b522d1 Mon Sep 17 00:00:00 2001 From: Eric Riddoch Date: Wed, 15 May 2024 20:52:09 -0600 Subject: [PATCH] fix: pyproject.toml:tool.black.exlude is a regex now --- {{cookiecutter.repo_name}}/pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.repo_name}}/pyproject.toml b/{{cookiecutter.repo_name}}/pyproject.toml index 3aa6b64..57f8026 100644 --- a/{{cookiecutter.repo_name}}/pyproject.toml +++ b/{{cookiecutter.repo_name}}/pyproject.toml @@ -59,7 +59,13 @@ markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"] [tool.black] line-length = 119 -exclude = ["venv"] +# regular expression ignoring multiple patterns separated by '|' and newlines +exclude = ''' +/( + \.venv + | venv +)/ +''' [tool.flake8] docstring-convention = "all"