Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc319414

Browse files
authored
Ignore blank line rules for docs formatting (#12934)
## Summaryfixes:#12933 ## Test Plan`python scripts/check_docs_formatted.py --generate-docs`
1 parentef1f6d9 commitc319414

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‎

Lines changed: 2 additions & 0 deletions
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‎

Lines changed: 2 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp