8000 GitHub - amyreese/ruff-api: Experimental Python API for Ruff
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

amyreese/ruff-api

Repository files navigation

ruff-api

Experimental Python API for Ruff

version license

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.

About

Experimental Python API for Ruff

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published
0