Skip to content

Fixes for #12360 Replacing percent format with f-strings - #12464

Merged
larsoner merged 48 commits into
mne-tools:mainfrom
hasrat17:main
Mar 19, 2024
Merged

larsoner merged 48 commits into
mne-tools:mainfrom
hasrat17:main

Conversation

@hasrat17

Copy link
Copy Markdown
Contributor

Reference issue

FIXES #12360

What does this implement/fix?

Replace percent format with format specifiers (f-strings)

Additional information

Used this command to capture percent format ruff check mne --config pyproject.toml --select UP031
Screenshot from 2024-02-27 02-04-43

@welcome

welcome Bot commented Feb 26, 2024

Copy link
Copy Markdown

Hello! 👋 Thanks for opening your first pull request here! ❤️ We will try to get back to you soon. 🚴

@hoechenberger

Copy link
Copy Markdown
Member

Thanks for your contribution, @hasrat17! There are numerous tests failing; this would need to be resolved before we can proceed here. Thanks!

@hasrat17

Copy link
Copy Markdown
Contributor Author

Hey @hoechenberger, This is my first contribution to open source; sorry for asking this, but can you please correct me if I am wrong? So I need to run this command pytest -m "not ultraslowtest" mne and check whether everything is passing. And the test case here, which is failing like this one, Tests / ubuntu-latest / pip-pre / 3.11 (pull_request) in details shows an extensive file, how to track the error from there to resolve it.
image

@hoechenberger

Copy link
Copy Markdown
Member

Hello, I won't have time to assist you here, sorry. But I'm sure some of the other developers will chime in 👍

@larsoner larsoner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I gave a couple of hints, can you see if it can help you fix the rest of the errors?

Comment thread mne/utils/check.py Resolved
Comment thread mne/label.py Resolved
hasrat17 and others added 21 commits March 13, 2024 23:19
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Clemens Brunner <[email protected]>
@larsoner larsoner added this to the 1.7 milestone Mar 14, 2024
@hasrat17
hasrat17 requested a review from cbrnr March 16, 2024 08:38
@hasrat17

Copy link
Copy Markdown
Contributor Author

Hey, @cbrnr @drammock @larsoner I have updated everything based on your suggestions. Can we merge this request?

@larsoner larsoner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just pushed a tiny commit to revert two little things, marking for merge when green, thanks in advance @hasrat17 !

@larsoner
larsoner merged commit b8d9c17 into mne-tools:main Mar 19, 2024
@welcome

welcome Bot commented Mar 19, 2024

Copy link
Copy Markdown

🎉 Congrats on merging your first pull request! 🥳 Looking forward to seeing more from you in the future! 💪

snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
…e-tools#12464)

Co-authored-by: Clemens Brunner <[email protected]>
Co-authored-by: Daniel McCloy <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Eric Larson <[email protected]>
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.

Replace percent format with format specifiers (f-strings)

5 participants