-
Notifications
You must be signed in to change notification settings - Fork 647
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
[MNT] move linting to ruff
, resolve strange linting behaviour
#1689
Comments
Hello @fkiraly! I'm interested in working on this issue and have started setting up Thank you! |
Of course! You can look at @fnhirwa's work in |
Hello @fkiraly! I'm working on replacing the current linting tools with Ruff. However, I've encountered a situation I'd like to clarify: I ran the pre-commit hooks using Could you give me more specific examples of the issues you've had? This would help ensure that the new In the meantime, I'll go ahead and set up Thanks! |
That is because all lines are already compliant with the current linting - many files in the code base include lines well in excess of the 79 or even larger bounds on number of characters. Further, if one tries to add line breaks, the linter resets them to "one line code". |
Hi @fkiraly , I've updated the project to use Ruff for linting, replacing Flake8 and isort. While making this transition, I've encountered some issues that I'd like your help with. Issues Encountered
|
Thanks, great! Could you make a pull request with these changes? If you are not done yet, you can make a draft pull request. Regarding the linting errors, I would not add blanket exceptions to these, and also not fix them automatically in the first PR. I would configure |
I've created a draft PR (#1692) that replaces
As mentioned I haven't added any exceptions for the warnings/errors occurring. Also, I've noticed that Thanks! |
The formatting might trigger a lot of changes, so it might be worth adding |
Hi @fkiraly, I've marked my PR to be reviewed now. Notes:
New Linting Errors Detected by Ruff:
Please let me know if any adjustments are needed. Thanks! |
Looks great! Seems to be 1:1 translation. I left a comment there. |
We should move the linting to
ruff
- good first issue for a maintenance affine contributor.There are also some strange behaviours in the precommits which I cannot pinpoint, e.g., the linter insisting on long single lines instead of line breaks where they would be appropriate. Though I would hope this is resolved as a side effect of moving to
ruff
.The text was updated successfully, but these errors were encountered: