Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ensure dotfiles are always filtered #1123

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

effigies
Copy link
Collaborator

@effigies effigies commented Mar 5, 2025

Dotfiles are ignored by default, but custom ignore patterns override the default ignores. This change ensures that dotfiles are always ignored in either case.

Regression test reproduces #1069 and patch fixes it.

Closes #1069.

@effigies
Copy link
Collaborator Author

effigies commented Mar 5, 2025

@shnizzedy could I trouble you or one of your group for a review?

Coerce ignore to list to handle other sequence types (tuples) being
passed.
@effigies effigies force-pushed the fix/ignore-dotfiles branch from 7362964 to 5a34b83 Compare March 5, 2025 15:23
@effigies
Copy link
Collaborator Author

effigies commented Mar 5, 2025

Added an extra test to take advantage of the new fixture. It's unrelated but closes an additional issue.

Copy link
Collaborator

@mgxd mgxd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! This has come up before - one suggestion but LGTM

@effigies effigies merged commit cd62b38 into bids-standard:master Mar 5, 2025
22 of 23 checks passed
@effigies effigies deleted the fix/ignore-dotfiles branch March 5, 2025 17:59
Copy link

@shnizzedy shnizzedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this was already merged before I got around to reviewing it, but it looks good to me

@effigies
Copy link
Collaborator Author

effigies commented Mar 5, 2025

Thanks! Post-merge reviews are always welcome, even (especially) when I'm rushing a bit.

effigies added a commit that referenced this pull request Mar 13, 2025
Version 0.19.0 (March 05, 2025)

New feature release in the 0.19.x series.

This release adds plus signs to labels and suffixes, anticipating the
release of BIDS 1.10.1 or 1.11.0 (whichever is next).
Until the BIDS specification is updated and the ``bidsschematools``
package containing the updated schema is published, files with ``+`` will
not validate, but can still be indexed with ``BIDSLayout(..., validate=False)``.

Several small fixes resolving issues with BIDS Stats Models are included,
and complex JSON metadata (lists and objects) will now play more nicely with
contexts where they need to be hashed.

* FIX: Catch StopIteration on directory walk (#1124)
* FIX: Ensure dotfiles are always filtered (#1123)
* FIX: Copy entities dict before modifying run variable type (#1120)
* FIX: Allow numpy arrays to treat PaddedInt like int (#1119)
* FIX: Make lists and dicts hashable (#1112)
* ENH: Allow plus signs in labels (#1117)
* MNT: Remove formulaic upper bound (#1121)
* MNT: Use tox-uv to ease lower bound checking, test on Python 3.13 (#1109)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MacOS Finder ._* hidden metadata files cause pybids to crash
3 participants