mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 12:58:20 +00:00
## Summary This PR moves the `Q003` rule to AST checker. This is the final rule that used the docstring detection state machine and thus this PR removes it as well. resolves: #7595 resolves: #7808 ## Test Plan - [x] `cargo test` - [x] Make sure there are no changes in the ecosystem
46 lines
1 KiB
Rust
46 lines
1 KiB
Rust
//! 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
|
|
|
|
#[cfg(feature = "clap")]
|
|
pub use registry::clap_completion::RuleParser;
|
|
#[cfg(feature = "clap")]
|
|
pub use rule_selector::clap_completion::RuleSelectorParser;
|
|
pub use rule_selector::RuleSelector;
|
|
pub use rules::pycodestyle::rules::{IOError, SyntaxError};
|
|
|
|
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|
|
|
|
mod checkers;
|
|
pub mod codes;
|
|
mod comments;
|
|
mod cst;
|
|
pub mod directives;
|
|
mod doc_lines;
|
|
mod docstrings;
|
|
mod fix;
|
|
pub mod fs;
|
|
mod importer;
|
|
pub mod line_width;
|
|
pub mod linter;
|
|
pub mod logging;
|
|
pub mod message;
|
|
mod noqa;
|
|
pub mod packaging;
|
|
pub mod pyproject_toml;
|
|
pub mod registry;
|
|
mod renamer;
|
|
mod rule_redirects;
|
|
pub mod rule_selector;
|
|
pub mod rules;
|
|
pub mod settings;
|
|
pub mod source_kind;
|
|
pub mod upstream_categories;
|
|
|
|
#[cfg(any(test, fuzzing))]
|
|
pub mod test;
|
|
|
|
pub const RUFF_PKG_VERSION: &str = env!("CARGO_PKG_VERSION");
|