Make the Ruff Python library available in ArcGIS Pro's conda environment

221
0
04-03-2024 06:47 AM
Status: Open
Labels (1)
Skyler
by
New Contributor III

ArcGIS Pro's default conda environment includes the Flake8 library for linting and the Black library for autoformatting. (See ArcGIS Blog: Improve Your Scripts with Linting and Automatic Code Formatting.) Several other Python code quality tools are available to be installed through the Package Manager, including isort, pydocstyle, and pep8-naming.

Ruff is a Python library that combines the functionality of all the tools mentioned above, plus more, while performing many times faster than any of them. Several mature projects have switched to using Ruff, such as Mozilla Firefox, pandas, pip, Project Jupyter, and SciPy. (See astral-sh/ruff: Who's Using Ruff?)

It would be great for Ruff either to be included in the default conda environment, or at least to be available to be installed through the Package Manager.