mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Ignore blank line rules for docs formatting (#12934)
## Summary fixes: #12933 ## Test Plan `python scripts/check_docs_formatted.py --generate-docs`
This commit is contained in:
parent
ef1f6d98a0
commit
c319414e54
2 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,7 @@ use crate::registry::Rule;
|
|||
///
|
||||
/// ```python
|
||||
/// class PhotoMetadata:
|
||||
///
|
||||
/// """Metadata about a photo."""
|
||||
/// ```
|
||||
///
|
||||
|
@ -125,6 +126,7 @@ impl AlwaysFixableViolation for OneBlankLineAfterClass {
|
|||
///
|
||||
/// ```python
|
||||
/// class PhotoMetadata:
|
||||
///
|
||||
/// """Metadata about a photo."""
|
||||
/// ```
|
||||
///
|
||||
|
|
|
@ -34,6 +34,7 @@ KNOWN_FORMATTING_VIOLATIONS = [
|
|||
"bad-quotes-inline-string",
|
||||
"bad-quotes-multiline-string",
|
||||
"blank-line-after-decorator",
|
||||
"blank-line-before-class",
|
||||
"blank-line-between-methods",
|
||||
"blank-lines-after-function-or-class",
|
||||
"blank-lines-before-nested-definition",
|
||||
|
@ -67,6 +68,7 @@ KNOWN_FORMATTING_VIOLATIONS = [
|
|||
"no-space-after-inline-comment",
|
||||
"non-empty-stub-body",
|
||||
"one-blank-line-after-class",
|
||||
"one-blank-line-before-class",
|
||||
"over-indentation",
|
||||
"over-indented",
|
||||
"pass-statement-stub-body",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue