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

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

Merged
merged 48 commits into from
Mar 19, 2024

Conversation

hasrat17
Copy link
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

Copy link

welcome bot commented Feb 26, 2024

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

@hoechenberger
Copy link
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
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
Member

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

Copy link
Member

@larsoner larsoner left a comment

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?

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
Contributor Author

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

Copy link
Member

@larsoner larsoner left a comment

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
30 checks passed
Copy link

welcome bot commented Mar 19, 2024

🎉 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