Skip to content

Switch code formatter from Flake8 to Ruff#690

Open
semohr wants to merge 3 commits into
quodlibet:mainfrom
semohr:ruff
Open

Switch code formatter from Flake8 to Ruff#690
semohr wants to merge 3 commits into
quodlibet:mainfrom
semohr:ruff

Conversation

@semohr
Copy link
Copy Markdown

@semohr semohr commented Oct 21, 2025

This PR updates the project’s code formatting and linting from Flake8 to Ruff.

Ruff should allow faster linting, better type hint support, and more modern rule enforcement, all current checks and configurations have been migrated.

I also added a .git-blame-ignore-revs file which allows ignoring the formatting commit in git blame.

Hope this change is welcome and I'm not overstepping here. Feedback is very welcome!

@lazka
Copy link
Copy Markdown
Member

lazka commented Dec 24, 2025

Sounds like a good idea. I'll play around with your proposed config.

I wonder if quote-style=preserve would reduce the diff a lot (while hopefully not annoy too many readers?)

@semohr
Copy link
Copy Markdown
Author

semohr commented Dec 24, 2025

The diff should be no issue for the git history since I added the commit to the .git-blame-ignore-revs file but might be a bit annoying for open PRs that need to rebase.

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.

2 participants