-
Notifications
You must be signed in to change notification settings - Fork 59
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
Linting with Ruff #1504
Linting with Ruff #1504
Conversation
…rations to pyproject.toml, reorder linting steps
For additional context, we still need to use |
Ok, I may have mixed manual and Ruff changes, you can tell me. It doesn't seem to be much different than what we had before. Sometimes more/less white space. It seems good. I'm not sure what could go wrong with PR really, what should I be looking for. It didn't change much of our earlier formatting, so it must be working more or less equivalently. |
need to remove mentions of pydocstyle in "contributing.rst" I think? |
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.
Approved!
…tions, ignore fewer rules
Pull Request Checklist:
number
) and pull request (:pull:number
) has been addedWhat kind of change does this PR introduce?
pydocstyle
andpycodestyle
, and removed most of the checking performed byflake8
(flake8 still needed forflake8-alphabetize
andflake8-rst
).pyproject.toml
with Ruff-based equivalent linting configurationtox.ini
andMakefile
to use Ruff. Reordered order of linting calls to trigger more typical violations first.Does this PR introduce a breaking change?
Yes. Ruff is now a dev dependency, while
pycodestyle
andpydocstyle
are no longer required. The checks that were being performed by those libraries are now redundant thanks to the new configuration.Other information:
Ruff is a linter for Python (built with Rust) that is blazingly fast and has been in development for around 1.5 years. Ruff v0.1.0 was released today.