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

0.3.1 • 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

58

Version

0.3.1

License

MIT

Unpacked Size

7.12 MB

Total Files

5

Last publish

Collaborators

  • dsherret