-
Notifications
You must be signed in to change notification settings - Fork 220
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
Use ruff to improve code quality #2741
Comments
Opened a PR to replace It should also be possible to replace
So should we replace |
Instead of replacing
|
Last updated on 2024/10/18 ruff supports many groups of rules (https://docs.astral.sh/ruff/rules/). I think we should go through the available rules and apply the rules that make sense to our project. ruff v0.7.0 (released on 2024/10/18) provides the following linters/rules:
|
I've enabled ~32 rulesets that make sense to our project. Closing the issue now and we may revisit it in the feature if new ruff versions provide more rulesets. |
I've been trying out some of these
Thinking of applying |
Sounds good. |
It seems ruff has been very hot recently. The README says it can replace flake8 and pylint, and more importantly, it's 10-100x faster.
Someone interested may try it and tell us how it works for the PyGMT project.
The text was updated successfully, but these errors were encountered: