Olivia5k / doge

wow very terminal doge
https://pypi.python.org/pypi/doge/
MIT License
961 stars 91 forks source link

Reformat with ruff, and fix linting warnings #72

Closed harkabeeparolus closed 5 months ago

harkabeeparolus commented 5 months ago

Ran ruff format and ruff check --preview, and fixed most of the warnings. I used ruff check --preview --unsafe-fixes --fix where possible. (This is comparable to black, isort, pyupgrade, flake8, and various other linters.)

This PR is pretty huge due to the auto formatting and switching from single quotes (') to double ("). The individual commits show the steps a little bit at a time.

harkabeeparolus commented 5 months ago

I think I'm pretty happy with this one now... It still works great on both macOS and Linux, and I've silenced all the warnings from ruff, flake8, pylint, etc.

The only remaining warnings are in the get_processes() function, for which I thought we might use https://github.com/giampaolo/psutil instead. I'll make a separate PR for that.