-
Notifications
You must be signed in to change notification settings - Fork 83
begin the repo linting #597
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
Codecov Report
@@ Coverage Diff @@
## main #597 +/- ##
=======================================
- Coverage 84.5% 84.5% -0.0%
=======================================
Files 128 128
Lines 15069 15061 -8
=======================================
- Hits 12734 12726 -8
Misses 2335 2335
|
|
I would do one PR that contains only the automatic fixes by ruff but across the whole code base and than a series of smaller PRs with the rest. The former does not need a ton of review and may resolve quite a lot already. |
| [tool.ruff.per-file-ignores] | ||
| "*__init__.py" = [ | ||
| "F401", # imported but unused | ||
| "F403", # star import; unable to detect undefined names |
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.
I'd like to eliminate star imports if possible but that can be a follow-up at some point in the future. It just may be worth opening an issue about it?
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.
I completely agree about star imports; and making a separate issue.
|
That said, I am happy to merge this as is. |
The problem with autofixing everything is that is sometimes breaks things. For example, in |
fun ... okay, let's go piece by piece then |
I think it's fun, but I know I'm an outlier in that regard 😆 |
This PR kicks off #589. Should we do this:
(This process is going to be a slog... between 2k-3k fixes on first inspection)