-
Notifications
You must be signed in to change notification settings - Fork 49
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
Moving from pylint+black+isort+bandit to Ruff Linter #829
Conversation
Looks like a good start, thanks. I'll leave at least some comments today, might not have time for a full review . Just as a heads-up: I originally suggested doing small iterative PRs mostly because there might be quite a few comments if everything is done in one go... but we'll see how it goes, it looks manageable so far. |
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.
Looks pretty good and the speed is awesome. Thanks for the work,
If isort, black, pylint and bandit are no longer used, then most references should be removed as well. could do some grepping to find all cases but at least
- remove them from requirements-lint.txt
- remove all
# pylint: disable=
comments in code - remove references in
.github/dependabot.yml
(and add ruff instead)
I left some specific comments in-line as well
I'll be making the following changes:
Please let me know if I missed anything. After that in a new PR I can start adding more and more Rules to the Rules selector until we reach |
Yeah "ALL" is a bit demanding (even assuming a lengthy ignore list): it's a good goal to have but not required in any way. There's certainly rulesets that would be nice to enable so if you're willing to do more than this PR, that sounds great. |
Sure, if you can let me know which rule sets would be nice to have, I will be working on adding those! I also noticed that not all files in _gpg have type annotations yet, maybe in a next PR I can also work on completing that. |
…dated, E501 suppressed, mypy.ini file list removed
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.
Looks great. I have a couple of small requests:
- "/pylintrc" should still be removed from the sdist include in pyproject.toml -- this might break the release build otherwise
.pre-commit-config.yaml
looks like it should be modified based on this: I would say it's not required as part of this PR but could you file an issue so we don't forget?
After this it looks good to merge. I filed an issue for the line length decision (so we don't just ignore E501 forever) #830.
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.
LGTM, thank you
Description of the changes being introduced by the pull request:
Fixes #440
(First ever PR, so feedback on mistakes more than welcome)