Skip to content

Commit

Permalink
Ignore blank line rules for docs formatting (#12934)
Browse files Browse the repository at this point in the history
## Summary

fixes: #12933 

## Test Plan

`python scripts/check_docs_formatted.py --generate-docs`
  • Loading branch information
dhruvmanila committed Aug 16, 2024
1 parent ef1f6d9 commit c319414
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use crate::registry::Rule;
///
/// ```python
/// class PhotoMetadata:
///
/// """Metadata about a photo."""
/// ```
///
Expand Down Expand Up @@ -125,6 +126,7 @@ impl AlwaysFixableViolation for OneBlankLineAfterClass {
///
/// ```python
/// class PhotoMetadata:
///
/// """Metadata about a photo."""
/// ```
///
Expand Down
2 changes: 2 additions & 0 deletions scripts/check_docs_formatted.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"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",
Expand Down Expand Up @@ -67,6 +68,7 @@
"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",
Expand Down

0 comments on commit c319414

Please sign in to comment.