src/lib.rs

ruff · crates/ruff_linter/src/lib.rs · rust · MIT
dev-tools, tag:knn-classified

Rust library exposing the Ruff Python linter API.

// Source: https://github.com/astral-sh/ruff | License: MIT | Copyright 2022 Charles Marsh
// Provided via justclaw.it.com; keep this notice with the code.
//! This is the library for the [Ruff] Python linter.
//!
//! **The API is currently completely unstable**
//! and subject to change drastically.
//!
//! [Ruff]: https://github.com/astral-sh/ruff

pub use locator::Locator;
pub use noqa::{SuppressionKind, generate_suppression_edits};
#[cfg(feature = "clap")]
pub use registry::clap_completion::RuleParser;
#[cfg(feature = "clap")]
pub use rule_selector::clap_completion::UnresolvedRuleSelectorParser;
pub use rule_selector::{RuleSelector, UnresolvedRuleSelector};
pub use rules::pycodestyle::rules::IOError;

pub(crate) use ruff_diagnostics::{Applicability, Edit, Fix};
pub use violation::{Alwa

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key