You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ruff was introduced in #7458. Arguments in favor were that it is faster, and combines multiple tools in a single tool (eg flake8, pyflakes, isort, pyupgrade ).
This switches our primary linter to Ruff. As adervertised, Ruff is very fast. Plust we get the benefit of using a single tool that combines the previous functionality of pyflakes, isort, and pyupgrade.
Suggestion
Suggestion: To move on with ruff replacement of tools, introduce ruff-format to replace black (See ruff Usage for integration with pre-commit). See issue
What is your issue?
Use
ruff
for formattingContext
Ruff was introduced in #7458. Arguments in favor were that it is faster, and combines multiple tools in a single tool (eg
flake8
,pyflakes
,isort
,pyupgrade
).Suggestion
Suggestion: To move on with ruff replacement of tools, introduce ruff-format to replace
black
(See ruff Usage for integration with pre-commit). See issuePandas uses ruff and ruff-format:
https://github.com/pandas-dev/pandas/blob/63dc0f76faa208450b8aaa57246029fcf94d015b/.pre-commit-config.yaml#L24
Ruff is capable of dosctring formatting:
https://docs.astral.sh/ruff/formatter/#docstring-formatting
Ruff can format Jupyter Notebooks:
https://docs.astral.sh/ruff/faq/#does-ruff-support-jupyter-notebooks
So, introducing the ruff formatter might remove the need for
black
andblackdoc
The text was updated successfully, but these errors were encountered: