Skip to content

Conversation

@sappelhoff
Copy link
Member

As far as I can see there are around 300 more fixes in around 80 more files to be done. But many of them cannot safely be done automatically, so here are a few manual fixes that should be fine.

@sappelhoff
Copy link
Member Author

I'll try to add a few more later

@sappelhoff sappelhoff requested a review from alexrockhill as a code owner July 27, 2024 14:05
@sappelhoff
Copy link
Member Author

sappelhoff commented Jul 27, 2024

Still around 150 incidences over 20+ files left. 😬

You can find them by globally searching for " % ... % yields too many modulo operations (not str formatting related)

CODESPELL_SKIPS ?= "doc/_build,doc/auto_*,*.fif,*.eve,*.gz,*.tgz,*.zip,*.mat,*.stc,*.label,*.w,*.bz2,*.annot,*.sulc,*.log,*.local-copy,*.orig_avg,*.inflated_avg,*.gii,*.pyc,*.doctree,*.pickle,*.inv,*.png,*.edf,*.touch,*.thickness,*.nofix,*.volume,*.defect_borders,*.mgh,lh.*,rh.*,COR-*,FreeSurferColorLUT.txt,*.examples,.xdebug_mris_calc,bad.segments,BadChannels,*.hist,empty_file,*.orig,*.js,*.map,*.ipynb,searchindex.dat,install_mne_c.rst,plot_*.rst,*.rst.txt,c_EULA.rst*,*.html,gdf_encodes.txt,*.svg,references.bib,*.css,*.edf,*.bdf,*.vhdr"
CODESPELL_DIRS ?= mne/ doc/ tutorials/ examples/
all: clean inplace test test-doc
all: clean test-doc
Copy link
Member Author

Choose a reason for hiding this comment

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

attention: These are non-f-string-related changes ☝️

These targets do not exist in the Makefile and were giving me errors, so I suggest to remove them.

@sappelhoff sappelhoff added this to the 1.8 milestone Jul 27, 2024
@sappelhoff
Copy link
Member Author

@mscheltienne @cbrnr please merge if you are happy with this. I'll fix potential errors that the CI spits out, but I won't be fixing more f-strings ... we'll have to continue with that another time :-)

@sappelhoff sappelhoff changed the title convert some more % strings to fstrings [MRG] convert some more % strings to fstrings Jul 27, 2024
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 only spot checked but looks good to me!

@mscheltienne mscheltienne enabled auto-merge (squash) July 28, 2024 08:52
Copy link
Member

@mscheltienne mscheltienne left a comment

Choose a reason for hiding this comment

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

Spot checked as well, LGTM, marking for merge, thanks @sappelhoff!

@mscheltienne mscheltienne merged commit e06921d into mne-tools:main Jul 28, 2024
@sappelhoff sappelhoff deleted the fstrings branch July 28, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants