holgern / pyedflib

pyedflib is a python library to read/write EDF+/BDF+ files based on EDFlib.
http://pyedflib.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
214 stars 121 forks source link

PEP8 or ruff? #192

Open DimitriPapadopoulos opened 1 year ago

DimitriPapadopoulos commented 1 year ago

Would you agree with merge requests to fix (some) pep8/pycodestyle or ruff alerts?

pep8.txt

DimitriPapadopoulos commented 1 year ago

As a start, I have applied pyupgrade to the Python code in #203.

Once and if this pull request is accepted, I can work on ruff alerts.

If you are not allergic to black, it might be even easier to start with black then fix any remaining issues:


$ ruff .
[...]
Found 299 errors.
[*] 18 potentially fixable with the --fix option.
$ 
$ black .
[...]
All done! ✨ 🍰 ✨
19 files reformatted, 3 files left unchanged.
$ 
$ ruff .
[...]
Found 86 errors.
[*] 18 potentially fixable with the --fix option.
$ 
`