diff --git a/crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/indentation.rs b/crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/indentation.rs index 380e8ba259..b6a6bbe434 100644 --- a/crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/indentation.rs +++ b/crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/indentation.rs @@ -60,12 +60,14 @@ impl Violation for IndentationWithInvalidMultiple { /// ```python /// if True: /// # a = 1 +/// ... /// ``` /// /// Use instead: /// ```python /// if True: /// # a = 1 +/// ... /// ``` /// /// ## Formatter compatibility diff --git a/scripts/check_docs_formatted.py b/scripts/check_docs_formatted.py index dc45579ca0..f4ac1b5314 100755 --- a/scripts/check_docs_formatted.py +++ b/scripts/check_docs_formatted.py @@ -57,6 +57,7 @@ KNOWN_FORMATTING_VIOLATIONS = [ "incorrect-blank-line-after-class", "incorrect-blank-line-before-class", "indentation-with-invalid-multiple", + "indentation-with-invalid-multiple-comment", "line-too-long", "missing-trailing-comma", "missing-whitespace", @@ -111,7 +112,6 @@ KNOWN_FORMATTING_VIOLATIONS = [ # For some docs, Ruff is unable to parse the example code. KNOWN_PARSE_ERRORS = [ "blank-line-with-whitespace", - "indentation-with-invalid-multiple-comment", "indented-form-feed", "missing-newline-at-end-of-file", "mixed-spaces-and-tabs",