From 0387824836d322113f312e5bbc8597fedf642d74 Mon Sep 17 00:00:00 2001 From: dylwil3 Date: Fri, 13 Dec 2024 16:06:04 -0600 Subject: [PATCH] update snapshot --- ...ules__pydocstyle__tests__D403_D403.py.snap | 37 +++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap index 6faa93a9fa136..14592e1b2db2e 100644 --- a/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap +++ b/crates/ruff_linter/src/rules/pydocstyle/snapshots/ruff_linter__rules__pydocstyle__tests__D403_D403.py.snap @@ -1,12 +1,11 @@ --- source: crates/ruff_linter/src/rules/pydocstyle/mod.rs -snapshot_kind: text --- -D403.py:2:5: D403 [*] First word of the first line should be capitalized: `this` -> `This` +D403.py:2:8: D403 [*] First word of the docstring should be capitalized: `this` -> `This` | 1 | def bad_function(): 2 | """this docstring is not capitalized""" - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D403 + | ^^^^ D403 3 | 4 | def good_function(): | @@ -20,11 +19,11 @@ D403.py:2:5: D403 [*] First word of the first line should be capitalized: `this` 4 4 | def good_function(): 5 5 | """This docstring is capitalized.""" -D403.py:30:5: D403 [*] First word of the first line should be capitalized: `singleword` -> `Singleword` +D403.py:30:8: D403 [*] First word of the docstring should be capitalized: `singleword` -> `Singleword` | 29 | def single_word(): 30 | """singleword.""" - | ^^^^^^^^^^^^^^^^^ D403 + | ^^^^^^^^^^ D403 31 | 32 | def single_word_no_dot(): | @@ -40,11 +39,13 @@ D403.py:30:5: D403 [*] First word of the first line should be capitalized: `sing 32 32 | def single_word_no_dot(): 33 33 | """singleword""" -D403.py:33:5: D403 [*] First word of the first line should be capitalized: `singleword` -> `Singleword` +D403.py:33:8: D403 [*] First word of the docstring should be capitalized: `singleword` -> `Singleword` | 32 | def single_word_no_dot(): 33 | """singleword""" - | ^^^^^^^^^^^^^^^^ D403 + | ^^^^^^^^^^ D403 +34 | +35 | def first_word_lots_of_whitespace(): | = help: Capitalize `singleword` to `Singleword` @@ -54,3 +55,25 @@ D403.py:33:5: D403 [*] First word of the first line should be capitalized: `sing 32 32 | def single_word_no_dot(): 33 |- """singleword""" 33 |+ """Singleword""" +34 34 | +35 35 | def first_word_lots_of_whitespace(): +36 36 | """ + +D403.py:40:5: D403 [*] First word of the docstring should be capitalized: `here` -> `Here` + | +40 | here is the start of my docstring! + | ^^^^ D403 +41 | +42 | What do you think? + | + = help: Capitalize `here` to `Here` + +ℹ Safe fix +37 37 | +38 38 | +39 39 | +40 |- here is the start of my docstring! + 40 |+ Here is the start of my docstring! +41 41 | +42 42 | What do you think? +43 43 | """