mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Enable tab completion for ruff rule
(#7560)
## Summary
Writing `ruff rule E1`, then tab, shows:
<img width="724" alt="Screen Shot 2023-09-20 at 9 29 09 PM"
src="00297f24
-8828-4485-a00e-6af1ab4e7875">
Closes https://github.com/astral-sh/ruff/issues/2812.
This commit is contained in:
parent
ad893f8295
commit
b685ee4749
4 changed files with 63 additions and 3 deletions
|
@ -5,6 +5,8 @@
|
|||
//!
|
||||
//! [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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue