From 82ef2c47e14142469893bce6bee726058360d2e1 Mon Sep 17 00:00:00 2001 From: Michael Hall Date: Mon, 25 Sep 2023 11:01:55 +1000 Subject: [PATCH] fix: make default exclude regex more specific [#202] --- snakefmt/snakefmt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snakefmt/snakefmt.py b/snakefmt/snakefmt.py index a1aa188..ef69439 100644 --- a/snakefmt/snakefmt.py +++ b/snakefmt/snakefmt.py @@ -20,8 +20,8 @@ PathLike = Union[Path, str] DEFAULT_EXCLUDES = ( - r"(\.snakemake|\.eggs|\.git|\.hg|\.mypy_cache|\.nox|\.tox|\.venv|\.svn|_build|" - r"buck-out|build|dist|\.template)" + r"(\.snakemake/|\.eggs/|\.git/|\.hg/|\.mypy_cache/|\.nox/|\.tox/|\.venv/|\.svn/|" + r"_build/|buck-out/|/build/|/dist/|\.template/)" ) DEFAULT_INCLUDES = r"(\.smk$|^Snakefile)"