Experimental API for Ruff
Project Links
Meta
Author: Amethyst Reese
Requires Python: >=3.8
Classifiers
Development Status
- 3 - Alpha
License
- OSI Approved :: MIT License
Programming Language
- Rust
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
ruff-api
Experimental Python API for Ruff
NOTE: This is project is highly experimental and the API is likely to change. Pin your dependencies accordingly.
Install
$ pip install ruff-api
Usage
import ruff_api
Format the contents of a file in memory:
code = ruff_api.format_string(filename, code)
Sort imports in memory:
code = ruff_api.isort_string(filename, code)
License
ruff-api is copyright Amethyst Reese, and licensed under the MIT license.
Oct 25, 2024
0.1.0
Aug 21, 2024
0.0.8
Aug 06, 2024
0.0.7
Jun 14, 2024
0.0.6
May 01, 2024
0.0.5
Mar 06, 2024
0.0.4
Feb 18, 2024
0.0.3
Jan 23, 2024
0.0.1
Jan 23, 2024
0