Update insta snapshots (#14366)

This commit is contained in:
Micha Reiser 2024-11-15 19:31:15 +01:00 committed by GitHub
parent 81e5830585
commit c847cad389
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2595 changed files with 3052 additions and 2578 deletions

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:1:1: D100 Missing docstring in public module

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D100_pub.py:1:1: D100 Missing docstring in public module

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:15:7: D101 Missing docstring in public class
|
@ -8,5 +9,3 @@ D.py:15:7: D101 Missing docstring in public class
16 |
17 | expect('meta', 'D419: Docstring is empty')
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:23:9: D102 Missing docstring in public method
|
@ -42,5 +43,3 @@ D.py:659:9: D102 Missing docstring in public method
| ^^^^^^^^^^^^^ D102
660 | pass
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
setter.py:16:9: D102 Missing docstring in public method
|
@ -8,5 +9,3 @@ setter.py:16:9: D102 Missing docstring in public method
| ^^^ D102
17 | pass
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:400:5: D103 Missing docstring in public function
|
@ -7,5 +8,3 @@ D.py:400:5: D103 Missing docstring in public function
400 | def oneliner_d102(): return
| ^^^^^^^^^^^^^ D103
|

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
__init__.py:1:1: D104 Missing docstring in public package

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:64:9: D105 Missing docstring in magic method
|
@ -8,5 +9,3 @@ D.py:64:9: D105 Missing docstring in magic method
| ^^^^^^^ D105
65 | pass
|

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:60:9: D107 Missing docstring in `__init__`
|
@ -17,5 +18,3 @@ D.py:534:9: D107 Missing docstring in `__init__`
| ^^^^^^^^ D107
535 | pass
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:129:5: D200 [*] One-line docstring should fit on one line
|
@ -108,5 +109,3 @@ D.py:645:5: D200 One-line docstring should fit on one line
648 | class StatementOnSameLineAsDocstring:
|
= help: Reformat to one line

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D200.py:2:5: D200 One-line docstring should fit on one line
|
@ -41,5 +42,3 @@ D200.py:12:5: D200 One-line docstring should fit on one line
| |_______^ D200
|
= help: Reformat to one line

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:137:5: D201 [*] No blank lines allowed before function docstring (found 1)
|
@ -84,5 +85,3 @@ D.py:568:5: D201 [*] No blank lines allowed before function docstring (found 1)
568 567 | """Trailing and leading space.
569 568 |
570 569 | More content.

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:142:5: D202 [*] No blank lines allowed after function docstring (found 1)
|
@ -87,6 +88,4 @@ D.py:568:5: D202 [*] No blank lines allowed after function docstring (found 1)
572 |-
573 572 | pass
574 573 |
575 574 |
575 574 |

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D202.py:57:5: D202 [*] No blank lines allowed after function docstring (found 2)
|
@ -58,5 +59,3 @@ D202.py:80:5: D202 [*] No blank lines allowed after function docstring (found 1)
82 81 | # This is a comment.
83 82 |
84 83 | def inner():

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:161:5: D203 [*] 1 blank line required before class docstring
|
@ -117,5 +118,3 @@ D.py:658:5: D203 [*] 1 blank line required before class docstring
658 659 | "After this docstring there's a comment." # priorities=1
659 660 | def sort_services(self):
660 661 | pass

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:181:5: D204 [*] 1 blank line required after class docstring
|
@ -97,6 +98,4 @@ D.py:658:5: D204 [*] 1 blank line required after class docstring
659 |+
659 660 | def sort_services(self):
660 661 | pass
661 662 |
661 662 |

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:200:5: D205 1 blank line required between summary line and description
|
@ -37,5 +38,3 @@ D.py:210:5: D205 [*] 1 blank line required between summary line and description
213 212 | Description.
214 213 |
215 214 | """

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:232:1: D207 [*] Docstring is under-indented
|
@ -78,5 +79,3 @@ D.py:441:1: D207 [*] Docstring is under-indented
442 442 |
443 443 |
444 444 | def function_with_lambda_arg(x=lambda y: y):

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:252:1: D208 [*] Docstring is over-indented
|
@ -428,5 +429,3 @@ D.py:723:1: D208 [*] Docstring is over-indented
723 |-     Returns:
723 |+ Returns:
724 724 | """

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D208.py:2:1: D208 [*] Docstring is over-indented
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:281:5: D209 [*] Multi-line docstring closing quotes should be on a separate line
|
@ -46,5 +47,3 @@ D.py:588:5: D209 [*] Multi-line docstring closing quotes should be on a separate
591 592 |
592 593 |
593 594 | @expect('D200: One-line docstring should fit on one line with quotes '

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:288:5: D210 [*] No whitespaces allowed surrounding docstring text
|
@ -70,5 +71,3 @@ D.py:581:5: D210 No whitespaces allowed surrounding docstring text
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D210
|
= help: Trim surrounding whitespace

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:170:5: D211 [*] No blank lines allowed before class docstring
|
@ -36,6 +37,4 @@ D.py:181:5: D211 [*] No blank lines allowed before class docstring
180 |-
181 180 | """TrailingSpace."""
182 181 | pass
183 182 |
183 182 |

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:129:5: D212 [*] Multi-line docstring summary should start at the first line
|
@ -71,5 +72,3 @@ D.py:624:5: D212 [*] Multi-line docstring summary should start at the first line
627 625 |
628 626 |
629 627 | @expect('D404: First word of the docstring should not be "This"')

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:200:5: D213 [*] Multi-line docstring summary should start at the second line
|
@ -701,5 +702,3 @@ D.py:721:5: D213 [*] Multi-line docstring summary should start at the second lin
722 723 |
723 724 |     Returns:
724 725 | """

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D214_module.py:3:5: D214 [*] Section is over-indented ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:146:9: D214 [*] Section is over-indented ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D215.py:3:5: D215 [*] Section underline is over-indented ("TODO")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:159:9: D215 [*] Section underline is over-indented ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:307:5: D300 [*] Use triple double quotes `"""`
|
@ -198,6 +199,4 @@ D.py:664:5: D300 [*] Use triple double quotes `"""`
665 |+ but continuations shouldn't be considered multi-line"""
666 666 |
667 667 |
668 668 |
668 668 |

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D300.py:6:5: D300 Use triple double quotes `"""`
|
@ -26,5 +27,3 @@ D300.py:10:5: D300 [*] Use triple double quotes `"""`
11 11 |
12 12 |
13 13 | # OK

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:333:5: D301 [*] Use `r"""` if any backslashes in a docstring
|
@ -19,5 +20,3 @@ D.py:333:5: D301 [*] Use `r"""` if any backslashes in a docstring
334 334 |
335 335 |
336 336 | @expect('D301: Use r""" if any backslashes in a docstring')

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D301.py:2:5: D301 [*] Use `r"""` if any backslashes in a docstring
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:355:5: D400 [*] First line should end with a period
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D400.py:2:5: D400 [*] First line should end with a period
|
@ -270,5 +271,3 @@ D400.py:97:5: D400 [*] First line should end with a period
99 99 | ==========
100 100 |
101 101 | My example explanation

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D400_415.py:2:5: D400 First line should end with a period
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D401.py:10:5: D401 First line of docstring should be in imperative mood: "Returns foo."
|
@ -63,5 +64,3 @@ D401.py:74:9: D401 First line of docstring should be in imperative mood: "This m
75 |
76 | @property
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:378:5: D402 First line should not be the function's signature
|
@ -8,5 +9,3 @@ D.py:378:5: D402 First line should not be the function's signature
378 | """Signature: foobar()."""
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ D402
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D402.py:2:5: D402 First line should not be the function's signature
|

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,5 +1,6 @@
---
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`
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:631:5: D404 First word of the docstring should not be "This"
|
@ -32,5 +33,3 @@ D.py:641:18: D404 First word of the docstring should not be "This"
641 | def same_line(): """This is a docstring on the same line"""
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ D404
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:19:5: D405 [*] Section name should be properly capitalized ("returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:32:5: D406 [*] Section name should end with a newline ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:44:5: D407 [*] Missing dashed underline after section ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:98:5: D408 [*] Section underline should be in the line following the section's name ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:111:5: D409 [*] Section underline should match the length of its name ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D410.py:4:5: D410 [*] Missing blank line after section ("Parameters")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:78:5: D410 [*] Missing blank line after section ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:80:5: D411 [*] Missing blank line before section ("Yields")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:218:5: D412 [*] No blank lines allowed between a section header and its content ("Short summary")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sphinx.py:13:5: D412 [*] No blank lines allowed between a section header and its content ("Example")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D413.py:7:1: D413 [*] Missing blank line after last section ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:67:5: D413 [*] Missing blank line after last section ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:56:5: D414 Section has no content ("Returns")
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:355:5: D415 [*] First line should end with a period, question mark, or exclamation point
|
@ -310,6 +311,4 @@ D.py:664:5: D415 [*] First line should end with a period, question mark, or excl
665 |+ but continuations shouldn't be considered multi-line."
666 666 |
667 667 |
668 668 |
668 668 |

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D400_415.py:11:5: D415 First line should end with a period, question mark, or exclamation point
|

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
sections.py:292:9: D417 Missing argument description in the docstring for `bar`: `y`
|
@ -99,5 +100,3 @@ sections.py:498:9: D417 Missing argument description in the docstring for `test_
| ^^^^^^^^^^^^^^^^^^^^^ D417
499 | """Reproducing issue #437.
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:34:9: D418 Function decorated with `@overload` shouldn't contain a docstring
|
@ -27,5 +28,3 @@ D.py:110:5: D418 Function decorated with `@overload` shouldn't contain a docstri
111 | """Foo bar documentation."""
112 | ...
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D.py:20:9: D419 Docstring is empty
|
@ -27,5 +28,3 @@ D.py:80:9: D419 Docstring is empty
80 | ''
| ^^ D419
|

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
all.py:1:1: D100 Missing docstring in public module
all.py:1:5: D103 Missing docstring in public function

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
bom.py:1:1: D300 [*] Use triple double quotes `"""`
|
@ -11,5 +12,3 @@ bom.py:1:1: D300 [*] Use triple double quotes `"""`
Safe fix
1 |-''' SAM macro definitions '''
1 |+""" SAM macro definitions """

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D209_D400.py:2:5: D209 [*] Multi-line docstring closing quotes should be on a separate line
|
@ -33,5 +34,3 @@ D209_D400.py:2:5: D400 [*] First line should end with a period
2 2 | """lorem ipsum dolor sit amet consectetur adipiscing elit
3 |- sed do eiusmod tempor incididunt ut labore et dolore magna aliqua"""
3 |+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."""

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D417.py:1:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z`
|
@ -71,5 +72,3 @@ D417.py:155:5: D417 Missing argument description in the docstring for `select_da
156 | query: str,
157 | args: tuple,
|

View file

@ -1,4 +1,5 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---

View file

@ -1,5 +1,6 @@
---
source: crates/ruff_linter/src/rules/pydocstyle/mod.rs
snapshot_kind: text
---
D417.py:1:5: D417 Missing argument descriptions in the docstring for `f`: `y`, `z`
|
@ -71,5 +72,3 @@ D417.py:155:5: D417 Missing argument description in the docstring for `select_da
156 | query: str,
157 | args: tuple,
|