Skip to content
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

Lint Python code with ruff instead of flake8 and isort #903

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Oct 19, 2024

https://docs.astral.sh/ruff

Ruff can be used to replace Flake8 (plus dozens of plugins), Black, isort, pydocstyle, pyupgrade, autoflake, and more, all while executing tens or hundreds of times faster than any individual tool.

@JoelLefkowitz
Copy link
Collaborator

This is interesting, I've never heard of ruff before. Speed for the static checkers hasn't been a concern for this repository before, but the simpler configuration and invocation of ruff looks really good

@JoelLefkowitz
Copy link
Collaborator

I also like the idea of separating the linters from tox, since it's meant to be a testing tool

@cclauss
Copy link
Contributor Author

cclauss commented Oct 21, 2024

Many projects put subsecond tools like codespell, ruff, etc into https://pre-commit.com
Jupyter: https://github.com/jupyter/notebook/blob/main/.pre-commit-config.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants