Skip to content

Commit c319414

Browse files
authored
Ignore blank line rules for docs formatting (#12934)
## Summary fixes: #12933 ## Test Plan `python scripts/check_docs_formatted.py --generate-docs`
1 parent ef1f6d9 commit c319414

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/ruff_linter/src/rules/pydocstyle/rules/blank_before_after_class.rs

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ use crate::registry::Rule;
3434
///
3535
/// ```python
3636
/// class PhotoMetadata:
37+
///
3738
/// """Metadata about a photo."""
3839
/// ```
3940
///
@@ -125,6 +126,7 @@ impl AlwaysFixableViolation for OneBlankLineAfterClass {
125126
///
126127
/// ```python
127128
/// class PhotoMetadata:
129+
///
128130
/// """Metadata about a photo."""
129131
/// ```
130132
///

scripts/check_docs_formatted.py

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"bad-quotes-inline-string",
3535
"bad-quotes-multiline-string",
3636
"blank-line-after-decorator",
37+
"blank-line-before-class",
3738
"blank-line-between-methods",
3839
"blank-lines-after-function-or-class",
3940
"blank-lines-before-nested-definition",
@@ -67,6 +68,7 @@
6768
"no-space-after-inline-comment",
6869
"non-empty-stub-body",
6970
"one-blank-line-after-class",
71+
"one-blank-line-before-class",
7072
"over-indentation",
7173
"over-indented",
7274
"pass-statement-stub-body",

0 commit comments

Comments
 (0)