Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve trailing semicolon if followed by comment #571

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests/tools/test_black.py
  • Loading branch information
MarcoGorelli authored Apr 17, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 60b23e30df6c45c7383f899b37330c2ad2c94718
2 changes: 1 addition & 1 deletion tests/tools/test_black.py
Original file line number Diff line number Diff line change
@@ -504,7 +504,7 @@ def test_invalid_syntax_with_nbqa_diff(capsys: "CaptureFixture") -> None:

def test_comment_after_trailing_comma(capsys: "CaptureFixture") -> None:
"""
Check that using nbqa-diff when there's invalid syntax doesn't have empty output.
Check trailing semicolon is still preserved if comma is after it.
MarcoGorelli marked this conversation as resolved.
Show resolved Hide resolved

Parameters
----------