linter-ruff Made for Pulsar!

A wrapper around Python linter called ruff

bacadra

312

0

1.0.2

MIT

GitHub

This package provides the following services:

linter-ruff

A wrapper around Python linter called ruff. Package used linter top-level API to visualize errors and other types of messages with ease.

Installation

To install linter-ruff search for linter-ruff in the Install pane of the Pulsar settings or run ppm install linter-ruff. Alternatively, you can run ppm install bacadra/pulsar-linter-ruff to install a package directly from the Github repository.

ruff

A package ruff is an extremely fast Python linter, written in Rust. Ruff can be used to replace Flake8 (plus dozens of plugins), isort, pydocstyle, yesqa, eradicate, pyupgrade, and autoflake, all while executing tens or hundreds of times faster than any individual tool.

For command line use, ruff is installed with pip install ruff.

Ruff supports over 800 lint rules, many of which are inspired by popular tools like Flake8, isort, pyupgrade, and others. Regardless of the rule's origin, Ruff re-implements every rule in Rust as a first-party feature.

Ruff can attempt to automatically fix lint violations. List of rule codes to treat as eligible & ineligible can be set in package setting or in configuration file.

Commands

In atom-workspace there are available commands:

Settings

The linter settings can be set by package options or via configuration file. The package options has higher priority, so if you want use configuration file, then leave empty Rule selection items.

A default configuration pyproject.toml can be opened (and created if doesn't exists) by command linter-ruff:global-pyproject.

The details of configuration file (e.g. commands, file discovery) can be found at ruff config discovery.

Contributing

Got ideas to make this package better, found a bug, or want to help add new features? Just drop your thoughts on GitHub — any feedback’s welcome!