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

Reformat with ruff, and fix linting warnings #72

Merged
merged 11 commits into from
Feb 11, 2024

Conversation

harkabeeparolus
Copy link
Collaborator

@harkabeeparolus harkabeeparolus commented Feb 10, 2024

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
Copy link
Collaborator Author

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.

@harkabeeparolus harkabeeparolus merged commit cbe1142 into Olivia5k:main Feb 11, 2024
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.

None yet

2 participants