From 489d768dde8913d1c003e3317b71ba852bfc6399 Mon Sep 17 00:00:00 2001 From: hans Date: Sun, 27 Apr 2025 17:40:02 +0800 Subject: [PATCH] add fix safety section to docs --- crates/ruff_linter/src/rules/pydocstyle/rules/one_liner.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/ruff_linter/src/rules/pydocstyle/rules/one_liner.rs b/crates/ruff_linter/src/rules/pydocstyle/rules/one_liner.rs index 7c5ca77e19e38..37473c7bd93d3 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/rules/one_liner.rs +++ b/crates/ruff_linter/src/rules/pydocstyle/rules/one_liner.rs @@ -27,6 +27,11 @@ use crate::docstrings::Docstring; /// """Return the mean of the given values.""" /// ``` /// +/// ## Fix safety +/// +/// This fix is marked as unsafe because it may produce a docstring +/// that exceeds the project's maximum line length +/// /// ## References /// - [PEP 257 – Docstring Conventions](https://peps.python.org/pep-0257/) ///