Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard authored and MichaReiser committed Mar 1, 2024
1 parent fd2c46f commit b108cee
Show file tree
Hide file tree
Showing 6 changed files with 588 additions and 549 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,43 @@ E30.py:464:5: E301 [*] Expected 1 blank line, found 0
464 465 | def fn2():
465 466 | pass

E30.py:474:5: E301 [*] Expected 1 blank line, found 0
|
473 | columns = []
474 | @classmethod
| ^ E301
475 | def cls_method(cls) -> None:
476 | pass
|
= help: Add missing blank line

Safe fix
471 471 | """Class for minimal repo."""
472 472 |
473 473 | columns = []
474 |+
474 475 | @classmethod
475 476 | def cls_method(cls) -> None:
476 477 | pass

E30.py:486:5: E301 [*] Expected 1 blank line, found 0
|
484 | def method(cls) -> None:
485 | pass
486 | @classmethod
| ^ E301
487 | def cls_method(cls) -> None:
488 | pass
|
= help: Add missing blank line

Safe fix
483 483 |
484 484 | def method(cls) -> None:
485 485 | pass
486 |+
486 487 | @classmethod
487 488 | def cls_method(cls) -> None:
488 489 | pass


Original file line number Diff line number Diff line change
@@ -1,187 +1,187 @@
---
source: crates/ruff_linter/src/rules/pycodestyle/mod.rs
---
E30.py:471:1: E302 [*] Expected 2 blank lines, found 0
E30.py:494:1: E302 [*] Expected 2 blank lines, found 0
|
469 | # E302
470 | """Main module."""
471 | def fn():
492 | # E302
493 | """Main module."""
494 | def fn():
| ^^^ E302
472 | pass
473 | # end
495 | pass
496 | # end
|
= help: Add missing blank line(s)

Safe fix
468 468 |
469 469 | # E302
470 470 | """Main module."""
471 |+
472 |+
471 473 | def fn():
472 474 | pass
473 475 | # end

E30.py:478:1: E302 [*] Expected 2 blank lines, found 0
|
476 | # E302
477 | import sys
478 | def get_sys_path():
491 491 |
492 492 | # E302
493 493 | """Main module."""
494 |+
495 |+
494 496 | def fn():
495 497 | pass
496 498 | # end

E30.py:501:1: E302 [*] Expected 2 blank lines, found 0
|
499 | # E302
500 | import sys
501 | def get_sys_path():
| ^^^ E302
479 | return sys.path
480 | # end
502 | return sys.path
503 | # end
|
= help: Add missing blank line(s)

Safe fix
475 475 |
476 476 | # E302
477 477 | import sys
478 |+
479 |+
478 480 | def get_sys_path():
479 481 | return sys.path
480 482 | # end

E30.py:487:1: E302 [*] Expected 2 blank lines, found 1
|
485 | pass
486 |
487 | def b():
498 498 |
499 499 | # E302
500 500 | import sys
501 |+
502 |+
501 503 | def get_sys_path():
502 504 | return sys.path
503 505 | # end

E30.py:510:1: E302 [*] Expected 2 blank lines, found 1
|
508 | pass
509 |
510 | def b():
| ^^^ E302
488 | pass
489 | # end
511 | pass
512 | # end
|
= help: Add missing blank line(s)

Safe fix
484 484 | def a():
485 485 | pass
486 486 |
487 |+
487 488 | def b():
488 489 | pass
489 490 | # end

E30.py:498:1: E302 [*] Expected 2 blank lines, found 1
|
496 | # comment
497 |
498 | def b():
507 507 | def a():
508 508 | pass
509 509 |
510 |+
510 511 | def b():
511 512 | pass
512 513 | # end

E30.py:521:1: E302 [*] Expected 2 blank lines, found 1
|
519 | # comment
520 |
521 | def b():
| ^^^ E302
499 | pass
500 | # end
522 | pass
523 | # end
|
= help: Add missing blank line(s)

Safe fix
495 495 |
496 496 | # comment
497 497 |
498 |+
498 499 | def b():
499 500 | pass
500 501 | # end

E30.py:507:1: E302 [*] Expected 2 blank lines, found 1
|
505 | pass
506 |
507 | async def b():
518 518 |
519 519 | # comment
520 520 |
521 |+
521 522 | def b():
522 523 | pass
523 524 | # end

E30.py:530:1: E302 [*] Expected 2 blank lines, found 1
|
528 | pass
529 |
530 | async def b():
| ^^^^^ E302
508 | pass
509 | # end
531 | pass
532 | # end
|
= help: Add missing blank line(s)

Safe fix
504 504 | def a():
505 505 | pass
506 506 |
507 |+
507 508 | async def b():
508 509 | pass
509 510 | # end

E30.py:516:1: E302 [*] Expected 2 blank lines, found 1
|
514 | pass
515 |
516 | async def x(y: int = 1):
527 527 | def a():
528 528 | pass
529 529 |
530 |+
530 531 | async def b():
531 532 | pass
532 533 | # end

E30.py:539:1: E302 [*] Expected 2 blank lines, found 1
|
537 | pass
538 |
539 | async def x(y: int = 1):
| ^^^^^ E302
517 | pass
518 | # end
540 | pass
541 | # end
|
= help: Add missing blank line(s)

Safe fix
513 513 | async def x():
514 514 | pass
515 515 |
516 |+
516 517 | async def x(y: int = 1):
517 518 | pass
518 519 | # end

E30.py:524:1: E302 [*] Expected 2 blank lines, found 0
|
522 | def bar():
523 | pass
524 | def baz(): pass
536 536 | async def x():
537 537 | pass
538 538 |
539 |+
539 540 | async def x(y: int = 1):
540 541 | pass
541 542 | # end

E30.py:547:1: E302 [*] Expected 2 blank lines, found 0
|
545 | def bar():
546 | pass
547 | def baz(): pass
| ^^^ E302
525 | # end
548 | # end
|
= help: Add missing blank line(s)

Safe fix
521 521 | # E302
522 522 | def bar():
523 523 | pass
524 |+
525 |+
524 526 | def baz(): pass
525 527 | # end
526 528 |

E30.py:530:1: E302 [*] Expected 2 blank lines, found 0
|
528 | # E302
529 | def bar(): pass
530 | def baz():
544 544 | # E302
545 545 | def bar():
546 546 | pass
547 |+
548 |+
547 549 | def baz(): pass
548 550 | # end
549 551 |

E30.py:553:1: E302 [*] Expected 2 blank lines, found 0
|
551 | # E302
552 | def bar(): pass
553 | def baz():
| ^^^ E302
531 | pass
532 | # end
554 | pass
555 | # end
|
= help: Add missing blank line(s)

Safe fix
527 527 |
528 528 | # E302
529 529 | def bar(): pass
530 |+
531 |+
530 532 | def baz():
531 533 | pass
532 534 | # end

E30.py:540:1: E302 [*] Expected 2 blank lines, found 1
|
539 | # comment
540 | @decorator
550 550 |
551 551 | # E302
552 552 | def bar(): pass
553 |+
554 |+
553 555 | def baz():
554 556 | pass
555 557 | # end

E30.py:563:1: E302 [*] Expected 2 blank lines, found 1
|
562 | # comment
563 | @decorator
| ^ E302
541 | def g():
542 | pass
564 | def g():
565 | pass
|
= help: Add missing blank line(s)

Safe fix
536 536 | def f():
537 537 | pass
538 538 |
539 |+
540 |+
539 541 | # comment
540 542 | @decorator
541 543 | def g():
559 559 | def f():
560 560 | pass
561 561 |
562 |+
563 |+
562 564 | # comment
563 565 | @decorator
564 566 | def g():


Loading

0 comments on commit b108cee

Please sign in to comment.