mne-tools / mne-connectivity

Connectivity algorithms that leverage the MNE-Python API.
https://mne.tools/mne-connectivity/dev/index.html
BSD 3-Clause "New" or "Revised" License
65 stars 34 forks source link

[MAINT] Clean up string formatting #205

Closed tsbinns closed 2 weeks ago

tsbinns commented 2 weeks ago

Does a few things:

  1. Switches to f-string formatting, hopefully didn't miss any (requested by @drammock: https://github.com/mne-tools/mne-connectivity/pull/193#discussion_r1639558215)
  2. Gets rid of annoying leftovers from switch to 88 line length where strings that were previously split over two lines no longer are, but were kept as two separate strings, e.g.:
    "this used to be split over two" "lines" => "this used to be split over two lines"
  3. Takes advantage of the new 88 line length for strings to reduce code footprint

(2) & (3) weren't requested, I just thought they would be good. If people would rather stick to just (1) I can change this.

tsbinns commented 2 weeks ago

Just realised I missed some things. Will fix now.

larsoner commented 2 weeks ago

Thanks @tsbinns