Skip to content

Commit 3c1f2cb

Browse files
authored
Merge pull request #99 from templateflow/fix/bids-dotfolders
FIX: Preempt ``BIDSLayout`` from indexing dot-folders
2 parents bdd9664 + 4ee2430 commit 3c1f2cb

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

docs/environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,5 @@ dependencies:
203203
- formulaic==0.3.4
204204
- nibabel==3.2.2
205205
- pandas==1.4.2
206-
- pybids==0.15.1
206+
- pybids==0.15.2
207207
- sqlalchemy==1.3.24

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pybids>=0.12.1
1+
pybids>=0.15.2
22
requests
33
tqdm
44
pytest

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ setup_requires =
3030
setuptools_scm >= 6.2
3131
wheel
3232
install_requires =
33-
pybids >= 0.12.1
33+
pybids >= 0.15.2
3434
requests
3535
tqdm
3636
test_requires =

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)