ruff-api-0.2.1
توضیحات
Experimental API for Ruff
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | ruff-api-0.2.1 |
| نام | ruff-api |
| نسخه کتابخانه | 0.2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Amethyst Reese <amethyst@n7.gg> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/ruff-api/ |
| مجوز | - |
# ruff-api
Experimental Python API for Ruff
[](https://pypi.org/project/ruff-api)
[](https://github.com/amyreese/ruff-api/blob/main/LICENSE)
NOTE: This is project is highly experimental and the API is likely to change.
Pin your dependencies accordingly.
Install
-------
```shell-session
$ pip install ruff-api
```
Usage
-----
```py
import ruff_api
```
Format the contents of a file in memory:
```py
code = ruff_api.format_string(filename, code)
```
Sort imports in memory:
```py
code = ruff_api.isort_string(filename, code)
```
License
-------
ruff-api is copyright Amethyst Reese, and licensed under the MIT license.
نیازمندی
| مقدار | نام |
|---|---|
| xtr | attribution==1.8.0; |
| xtr | flake8==7.3.0; |
| xtr | maturin==1.10.2; |
| xtr | mypy==1.19.0; |
| xtr | pytest==8.4.2; |
| xtr | ufmt==2.8.0; |
| xtr | usort==1.0.8.post1; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl ruff-api-0.2.1:
pip install ruff-api-0.2.1.whl
نصب پکیج tar.gz ruff-api-0.2.1:
pip install ruff-api-0.2.1.tar.gz