mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 04:19:18 +00:00
[TRIO
] Add TRIO115
: TrioZeroSleepCall (#8486)
## Summary Adds `TRIO115` from the [flake8-trio plugin](https://github.com/Zac-HD/flake8-trio). ## Test Plan Added a new fixture, based on [the one from upstream plugin](https://github.com/Zac-HD/flake8-trio/blob/main/tests/eval_files/trio115.py) ## Issue link Relates to: https://github.com/astral-sh/ruff/issues/8451
This commit is contained in:
parent
de2d7e97b1
commit
f3e2d12609
8 changed files with 260 additions and 0 deletions
|
@ -293,6 +293,7 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> {
|
|||
// flake8-trio
|
||||
(Flake8Trio, "100") => (RuleGroup::Preview, rules::flake8_trio::rules::TrioTimeoutWithoutAwait),
|
||||
(Flake8Trio, "105") => (RuleGroup::Preview, rules::flake8_trio::rules::TrioSyncCall),
|
||||
(Flake8Trio, "115") => (RuleGroup::Preview, rules::flake8_trio::rules::TrioZeroSleepCall),
|
||||
|
||||
// flake8-builtins
|
||||
(Flake8Builtins, "001") => (RuleGroup::Stable, rules::flake8_builtins::rules::BuiltinVariableShadowing),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue