Skip to content

Commit aefe51c

Browse files
committed
try ruff to find unused imports
1 parent 9fba0f5 commit aefe51c

32 files changed

Lines changed: 1 addition & 39 deletions

IPython/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# Imports
1919
#-----------------------------------------------------------------------------
2020

21-
import os
2221
import sys
2322

2423
#-----------------------------------------------------------------------------

IPython/core/application.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
import atexit
1616
from copy import deepcopy
17-
import glob
1817
import logging
1918
import os
2019
import shutil

IPython/core/crashhandler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# Imports
2020
#-----------------------------------------------------------------------------
2121

22-
import os
2322
import sys
2423
import traceback
2524
from pprint import pformat

IPython/core/debugger.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
import inspect
105105
import linecache
106106
import sys
107-
import warnings
108107
import re
109108
import os
110109

IPython/core/excolors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55

66
import os
7-
import warnings
87

98
#*****************************************************************************
109
# Copyright (C) 2005-2006 Fernando Perez <fperez@colorado.edu>

IPython/core/formatters.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# Distributed under the terms of the Modified BSD License.
1212

1313
import abc
14-
import json
1514
import sys
1615
import traceback
1716
import warnings

IPython/core/inputtransformer2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
# Distributed under the terms of the Modified BSD License.
1212

1313
import ast
14-
import sys
1514
from codeop import CommandCompiler, Compile
1615
import re
1716
import tokenize

IPython/core/magics/basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""Implementation of basic magic functions."""
22

33

4-
import argparse
54
from logging import error
65
import io
76
import os

IPython/core/oinspect.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from IPython.testing.skipdoctest import skip_doctest
3232
from IPython.utils import PyColorize
3333
from IPython.utils import openpy
34-
from IPython.utils import py3compat
3534
from IPython.utils.dir2 import safe_hasattr
3635
from IPython.utils.path import compress_user
3736
from IPython.utils.text import indent

IPython/core/shellapp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from IPython.core import pylabtools
2020
from IPython.utils.contexts import preserve_keys
2121
from IPython.utils.path import filefind
22-
import traitlets
2322
from traitlets import (
2423
Unicode, Instance, List, Bool, CaselessStrEnum, observe,
2524
DottedObjectName,

0 commit comments

Comments
 (0)