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

MAINT: run black on files that ends up in a single line change. #13739

Merged
merged 1 commit into from Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions IPython/core/tests/print_argv.py
@@ -1,2 +1,3 @@
import sys

print(sys.argv[1:])
1 change: 1 addition & 0 deletions IPython/core/tests/test_autocall.py
Expand Up @@ -8,6 +8,7 @@
from IPython.core.splitinput import LineInfo
from IPython.core.prefilter import AutocallChecker


def doctest_autocall():
"""
In [1]: def f1(a,b,c):
Expand Down
1 change: 1 addition & 0 deletions IPython/core/tests/test_splitinput.py
Expand Up @@ -32,6 +32,7 @@
def test_split_user_input():
return tt.check_pairs(split_user_input, tests)


def test_LineInfo():
"""Simple test for LineInfo construction and str()"""
linfo = LineInfo(" %cd /home")
Expand Down
1 change: 1 addition & 0 deletions IPython/lib/tests/test_clipboard.py
Expand Up @@ -2,6 +2,7 @@
from IPython.lib.clipboard import ClipboardEmpty
from IPython.testing.decorators import skip_if_no_x11


@skip_if_no_x11
def test_clipboard_get():
# Smoketest for clipboard access - we can't easily guarantee that the
Expand Down
1 change: 1 addition & 0 deletions IPython/utils/contexts.py
Expand Up @@ -7,6 +7,7 @@
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.


class preserve_keys(object):
"""Preserve a set of keys in a dictionary.

Expand Down
1 change: 0 additions & 1 deletion IPython/utils/eventful.py
@@ -1,4 +1,3 @@

from warnings import warn

warn("IPython.utils.eventful has moved to traitlets.eventful", stacklevel=2)
Expand Down
1 change: 0 additions & 1 deletion IPython/utils/log.py
@@ -1,4 +1,3 @@

from warnings import warn

warn("IPython.utils.log has moved to traitlets.log", stacklevel=2)
Expand Down
1 change: 1 addition & 0 deletions IPython/utils/tempdir.py
Expand Up @@ -48,6 +48,7 @@ class TemporaryWorkingDirectory(TemporaryDirectory):
with TemporaryWorkingDirectory() as tmpdir:
...
"""

def __enter__(self):
self.old_wd = Path.cwd()
_os.chdir(self.name)
Expand Down