Skip to content

Commit 3f9c25c

Browse files
committed
fix: dotfiles are indexed
Resolves: #98.
1 parent 7d96f0a commit 3f9c25c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

templateflow/conf/__init__.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Configuration and settings."""
22
from os import getenv
3+
import re
34
from warnings import warn
45
from pathlib import Path
56
from contextlib import suppress
@@ -151,12 +152,9 @@ def init_layout():
151152
indexer=BIDSLayoutIndexer(
152153
validate=False,
153154
ignore=(
154-
".git",
155-
".datalad",
156-
".gitannex",
157-
".gitattributes",
158-
".github",
159-
"scripts",
155+
re.compile(r"scripts/"),
156+
re.compile(r"/\."),
157+
re.compile(r"^\."),
160158
),
161159
),
162160
)

0 commit comments

Comments
 (0)