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

MAINT: Check that all options are used #889

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Conversation

larsoner
Copy link
Member

Before merging …

  • Changelog has been updated (docs/source/changes.md)

Follow-up to #888:

  1. Adds test that we do use all options somewhere
  2. Remove study_name which we don't use anywhere (even though it's our first listed config option!)

f"{where} cannot handle call {keyword.value.func.id=} "
f"for {key}"
)
# Get the source and regex for config values
Copy link
Member Author

Choose a reason for hiding this comment

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

This file is copy-paste then refactored to have constants at the top, plus added regex for finding config. stuff in functions like _bids_kwargs and get_runs etc.

@hoechenberger
Copy link
Member

very nice!

@larsoner larsoner enabled auto-merge (squash) March 14, 2024 15:51
@larsoner larsoner merged commit 1c2a081 into mne-tools:main Mar 14, 2024
49 of 50 checks passed
@larsoner larsoner deleted the check branch March 14, 2024 16:14
@hoechenberger
Copy link
Member

2. Remove study_name which we don't use anywhere (even though it's our first listed config option!)

🫣😅

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.

None yet

2 participants