diff --git a/crates/ruff_linter/src/rules/flake8_async/rules/blocking_input.rs b/crates/ruff_linter/src/rules/flake8_async/rules/blocking_input.rs index c4c2cc85d616c8..bb3f07816e4372 100644 --- a/crates/ruff_linter/src/rules/flake8_async/rules/blocking_input.rs +++ b/crates/ruff_linter/src/rules/flake8_async/rules/blocking_input.rs @@ -33,13 +33,13 @@ use crate::checkers::ast::Checker; /// username = await loop.run_in_executor(None, input, "Username:") /// ``` #[derive(ViolationMetadata)] -#[violation_metadata(preview_since = "0.12.12")] +#[violation_metadata(stable_since = "0.15.0")] pub(crate) struct BlockingInputInAsyncFunction; impl Violation for BlockingInputInAsyncFunction { #[derive_message_formats] fn message(&self) -> String { - "Blocking call to input() in async context".to_string() + "Blocking call to `input()` in async context".to_string() } } diff --git a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC250_ASYNC250.py.snap b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC250_ASYNC250.py.snap index d65458efbd2734..046faa42de00b0 100644 --- a/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC250_ASYNC250.py.snap +++ b/crates/ruff_linter/src/rules/flake8_async/snapshots/ruff_linter__rules__flake8_async__tests__ASYNC250_ASYNC250.py.snap @@ -1,7 +1,7 @@ --- source: crates/ruff_linter/src/rules/flake8_async/mod.rs --- -ASYNC250 Blocking call to input() in async context +ASYNC250 Blocking call to `input()` in async context --> ASYNC250.py:7:9 | 6 | async def foo(): @@ -10,7 +10,7 @@ ASYNC250 Blocking call to input() in async context 8 | input("hello world") # ASYNC250 | -ASYNC250 Blocking call to input() in async context +ASYNC250 Blocking call to `input()` in async context --> ASYNC250.py:8:5 | 6 | async def foo(): @@ -19,7 +19,7 @@ ASYNC250 Blocking call to input() in async context | ^^^^^ | -ASYNC250 Blocking call to input() in async context +ASYNC250 Blocking call to `input()` in async context --> ASYNC250.py:21:5 | 20 | async def foo():