-
-
Notifications
You must be signed in to change notification settings - Fork 195
Add pre-commit, ruff check
configuration and Github action
#405
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
Conversation
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
@hugovk Voilà! Thank you for a beautiful review. Some notes:
|
It's very important we can compare new benchmark runs with old ones, so let's just leave them be. We want to benchmark some sort of "real-life code", and unused variables is often part of that :)
Yes, makes sense. We can do it in followups. We might want to autoformat the code and keep ignoring E501.
Yeah, again it's safer to just leave the actual benchmarks as-is, but we could do a sweep of the benchmark-running code. I've used vulture a bit, there's also deadcode which is similar, but deadcode has nice colour output. |
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, one last thing :)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
After #404, I ran
uvx ruff check
and found a lot of not so subtle errors:Including benchmarks:
It makes one wonder how much of this code is actually dead...