Skip to content

Commit

Permalink
Reduce changed snapshots?
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Nov 15, 2023
1 parent 975b948 commit 11a2137
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 287 deletions.
12 changes: 6 additions & 6 deletions crates/ruff_linter/resources/test/fixtures/pydocstyle/D.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ def newline_after_closing_quote(self):


def retain_extra_whitespace():
"""Summary
"""Summary.
This is overindented
And so is this, but it we should preserve the extra space on this line relative
Expand All @@ -677,7 +677,7 @@ def retain_extra_whitespace():


def retain_extra_whitespace_multiple():
"""Summary
"""Summary.
This is overindented
And so is this, but it we should preserve the extra space on this line relative
Expand All @@ -690,7 +690,7 @@ def retain_extra_whitespace_multiple():


def retain_extra_whitespace_deeper():
"""Summary
"""Summary.
This is overindented
And so is this, but it we should preserve the extra space on this line relative
Expand All @@ -699,7 +699,7 @@ def retain_extra_whitespace_deeper():
"""

def retain_extra_whitespace_followed_by_same_offset():
"""Summary
"""Summary.
This is overindented
And so is this, but it we should preserve the extra space on this line relative
Expand All @@ -709,9 +709,9 @@ def retain_extra_whitespace_followed_by_same_offset():


def retain_extra_whitespace_not_overindented():
"""Summary
"""Summary.
This is not overindented
This is overindented, but since one line is not overindented this should not raise
And so is this, but it we should preserve the extra space on this line relative
"""
"""
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ D.py:272:1: D208 [*] Docstring is over-indented

D.py:673:1: D208 [*] Docstring is over-indented
|
671 | """Summary
671 | """Summary.
672 |
673 | This is overindented
| D208
Expand All @@ -75,7 +75,7 @@ D.py:673:1: D208 [*] Docstring is over-indented

Safe fix
670 670 | def retain_extra_whitespace():
671 671 | """Summary
671 671 | """Summary.
672 672 |
673 |- This is overindented
673 |+ This is overindented
Expand All @@ -94,7 +94,7 @@ D.py:674:1: D208 [*] Docstring is over-indented
= help: Remove over-indentation

Safe fix
671 671 | """Summary
671 671 | """Summary.
672 672 |
673 673 | This is overindented
674 |- And so is this, but it we should preserve the extra space on this line relative
Expand Down Expand Up @@ -125,7 +125,7 @@ D.py:675:1: D208 [*] Docstring is over-indented

D.py:682:1: D208 [*] Docstring is over-indented
|
680 | """Summary
680 | """Summary.
681 |
682 | This is overindented
| D208
Expand All @@ -136,7 +136,7 @@ D.py:682:1: D208 [*] Docstring is over-indented

Safe fix
679 679 | def retain_extra_whitespace_multiple():
680 680 | """Summary
680 680 | """Summary.
681 681 |
682 |- This is overindented
682 |+ This is overindented
Expand All @@ -155,7 +155,7 @@ D.py:683:1: D208 [*] Docstring is over-indented
= help: Remove over-indentation

Safe fix
680 680 | """Summary
680 680 | """Summary.
681 681 |
682 682 | This is overindented
683 |- And so is this, but it we should preserve the extra space on this line relative
Expand Down Expand Up @@ -249,7 +249,7 @@ D.py:687:1: D208 [*] Docstring is over-indented

D.py:695:1: D208 [*] Docstring is over-indented
|
693 | """Summary
693 | """Summary.
694 |
695 | This is overindented
| D208
Expand All @@ -260,7 +260,7 @@ D.py:695:1: D208 [*] Docstring is over-indented

Safe fix
692 692 | def retain_extra_whitespace_deeper():
693 693 | """Summary
693 693 | """Summary.
694 694 |
695 |- This is overindented
695 |+ This is overindented
Expand All @@ -279,7 +279,7 @@ D.py:696:1: D208 [*] Docstring is over-indented
= help: Remove over-indentation

Safe fix
693 693 | """Summary
693 693 | """Summary.
694 694 |
695 695 | This is overindented
696 |- And so is this, but it we should preserve the extra space on this line relative
Expand Down Expand Up @@ -331,7 +331,7 @@ D.py:698:1: D208 [*] Docstring is over-indented

D.py:704:1: D208 [*] Docstring is over-indented
|
702 | """Summary
702 | """Summary.
703 |
704 | This is overindented
| D208
Expand All @@ -342,7 +342,7 @@ D.py:704:1: D208 [*] Docstring is over-indented

Safe fix
701 701 | def retain_extra_whitespace_followed_by_same_offset():
702 702 | """Summary
702 702 | """Summary.
703 703 |
704 |- This is overindented
704 |+ This is overindented
Expand All @@ -361,7 +361,7 @@ D.py:705:1: D208 [*] Docstring is over-indented
= help: Remove over-indentation

Safe fix
702 702 | """Summary
702 702 | """Summary.
703 703 |
704 704 | This is overindented
705 |- And so is this, but it we should preserve the extra space on this line relative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ D.py:615:5: D213 [*] Multi-line docstring summary should start at the second lin
D.py:671:5: D213 [*] Multi-line docstring summary should start at the second line
|
670 | def retain_extra_whitespace():
671 | """Summary
671 | """Summary.
| _____^
672 | |
673 | | This is overindented
Expand All @@ -565,17 +565,17 @@ D.py:671:5: D213 [*] Multi-line docstring summary should start at the second lin
668 668 |
669 669 |
670 670 | def retain_extra_whitespace():
671 |- """Summary
671 |- """Summary.
671 |+ """
672 |+ Summary
672 |+ Summary.
672 673 |
673 674 | This is overindented
674 675 | And so is this, but it we should preserve the extra space on this line relative

D.py:680:5: D213 [*] Multi-line docstring summary should start at the second line
|
679 | def retain_extra_whitespace_multiple():
680 | """Summary
680 | """Summary.
| _____^
681 | |
682 | | This is overindented
Expand All @@ -593,17 +593,17 @@ D.py:680:5: D213 [*] Multi-line docstring summary should start at the second lin
677 677 |
678 678 |
679 679 | def retain_extra_whitespace_multiple():
680 |- """Summary
680 |- """Summary.
680 |+ """
681 |+ Summary
681 |+ Summary.
681 682 |
682 683 | This is overindented
683 684 | And so is this, but it we should preserve the extra space on this line relative

D.py:693:5: D213 [*] Multi-line docstring summary should start at the second line
|
692 | def retain_extra_whitespace_deeper():
693 | """Summary
693 | """Summary.
| _____^
694 | |
695 | | This is overindented
Expand All @@ -621,17 +621,17 @@ D.py:693:5: D213 [*] Multi-line docstring summary should start at the second lin
690 690 |
691 691 |
692 692 | def retain_extra_whitespace_deeper():
693 |- """Summary
693 |- """Summary.
693 |+ """
694 |+ Summary
694 |+ Summary.
694 695 |
695 696 | This is overindented
696 697 | And so is this, but it we should preserve the extra space on this line relative

D.py:702:5: D213 [*] Multi-line docstring summary should start at the second line
|
701 | def retain_extra_whitespace_followed_by_same_offset():
702 | """Summary
702 | """Summary.
| _____^
703 | |
704 | | This is overindented
Expand All @@ -647,17 +647,17 @@ D.py:702:5: D213 [*] Multi-line docstring summary should start at the second lin
699 699 | """
700 700 |
701 701 | def retain_extra_whitespace_followed_by_same_offset():
702 |- """Summary
702 |- """Summary.
702 |+ """
703 |+ Summary
703 |+ Summary.
703 704 |
704 705 | This is overindented
705 706 | And so is this, but it we should preserve the extra space on this line relative

D.py:712:5: D213 [*] Multi-line docstring summary should start at the second line
|
711 | def retain_extra_whitespace_not_overindented():
712 | """Summary
712 | """Summary.
| _____^
713 | |
714 | | This is not overindented
Expand All @@ -672,9 +672,9 @@ D.py:712:5: D213 [*] Multi-line docstring summary should start at the second lin
709 709 |
710 710 |
711 711 | def retain_extra_whitespace_not_overindented():
712 |- """Summary
712 |- """Summary.
712 |+ """
713 |+ Summary
713 |+ Summary.
713 714 |
714 715 | This is not overindented
715 716 | This is overindented, but since one line is not overindented this should not raise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,131 +330,4 @@ D.py:664:5: D400 [*] First line should end with a period
667 667 |
668 668 |

D.py:671:5: D400 [*] First line should end with a period
|
670 | def retain_extra_whitespace():
671 | """Summary
| _____^
672 | |
673 | | This is overindented
674 | | And so is this, but it we should preserve the extra space on this line relative
675 | | to the one before
676 | | """
| |_______^ D400
|
= help: Add period

Unsafe fix
668 668 |
669 669 |
670 670 | def retain_extra_whitespace():
671 |- """Summary
671 |+ """Summary.
672 672 |
673 673 | This is overindented
674 674 | And so is this, but it we should preserve the extra space on this line relative

D.py:680:5: D400 [*] First line should end with a period
|
679 | def retain_extra_whitespace_multiple():
680 | """Summary
| _____^
681 | |
682 | | This is overindented
683 | | And so is this, but it we should preserve the extra space on this line relative
684 | | to the one before
685 | | This is also overindented
686 | | And so is this, but it we should preserve the extra space on this line relative
687 | | to the one before
688 | | """
| |_______^ D400
|
= help: Add period

Unsafe fix
677 677 |
678 678 |
679 679 | def retain_extra_whitespace_multiple():
680 |- """Summary
680 |+ """Summary.
681 681 |
682 682 | This is overindented
683 683 | And so is this, but it we should preserve the extra space on this line relative

D.py:693:5: D400 [*] First line should end with a period
|
692 | def retain_extra_whitespace_deeper():
693 | """Summary
| _____^
694 | |
695 | | This is overindented
696 | | And so is this, but it we should preserve the extra space on this line relative
697 | | to the one before
698 | | And the relative indent here should be preserved too
699 | | """
| |_______^ D400
700 |
701 | def retain_extra_whitespace_followed_by_same_offset():
|
= help: Add period

Unsafe fix
690 690 |
691 691 |
692 692 | def retain_extra_whitespace_deeper():
693 |- """Summary
693 |+ """Summary.
694 694 |
695 695 | This is overindented
696 696 | And so is this, but it we should preserve the extra space on this line relative

D.py:702:5: D400 [*] First line should end with a period
|
701 | def retain_extra_whitespace_followed_by_same_offset():
702 | """Summary
| _____^
703 | |
704 | | This is overindented
705 | | And so is this, but it we should preserve the extra space on this line relative
706 | | This is overindented
707 | | This is overindented
708 | | """
| |_______^ D400
|
= help: Add period

Unsafe fix
699 699 | """
700 700 |
701 701 | def retain_extra_whitespace_followed_by_same_offset():
702 |- """Summary
702 |+ """Summary.
703 703 |
704 704 | This is overindented
705 705 | And so is this, but it we should preserve the extra space on this line relative

D.py:712:5: D400 [*] First line should end with a period
|
711 | def retain_extra_whitespace_not_overindented():
712 | """Summary
| _____^
713 | |
714 | | This is not overindented
715 | | This is overindented, but since one line is not overindented this should not raise
716 | | And so is this, but it we should preserve the extra space on this line relative
717 | | """
| |_______^ D400
|
= help: Add period

Unsafe fix
709 709 |
710 710 |
711 711 | def retain_extra_whitespace_not_overindented():
712 |- """Summary
712 |+ """Summary.
713 713 |
714 714 | This is not overindented
715 715 | This is overindented, but since one line is not overindented this should not raise


Loading

0 comments on commit 11a2137

Please sign in to comment.