|
|
|
|
|
by kdeldycke
1214 days ago
|
|
If the main argument for Ruff is speed, its real advantage is the consolidation of the Python QA menagerie: - isort (import statement sorting)
- pyupgrade (syntax upgrade for newer Python versions)
- pylint (general linting)
- pycln (remove unused imports)
- pydocstyle (docstring syntax checks)
All of these can be replaced with a single ruff call. Ruff consolidates the rules from all these tools into a comprehensive and non-overlapping corpus. And removes the burden of having to find the right invokation order.What's missing for ruff to be the gold standard, is to adopt features from: - autopep8 (wraps long comments)
- docformatter (docstring auto-formatting)
- black (determinism code formatting)
- blacken-docs (applying black on Python code blocks in documentation)
|
|