@dprint/ruff
TypeScript icon, indicating that this package has built-in type declarations

0.3.9 • Public • Published

@dprint/ruff

npm distribution of dprint-plugin-ruff which is an adapter plugin for Ruff.

Use this with @dprint/formatter or just use @dprint/formatter and download the dprint-plugin-ruff Wasm file.

Example

import { createFromBuffer } from "@dprint/formatter";
import { getBuffer } from "@dprint/ruff";

const formatter = createFromBuffer(getBuffer());

console.log(
  formatter.formatText("test.py", `print(  "Hi!")`),
);

Package Sidebar

Install

npm i @dprint/ruff

Weekly Downloads

5

Version

0.3.9

License

MIT

Unpacked Size

7.1 MB

Total Files

5

Last publish

Collaborators

  • dsherret