Skip to content

Commit cabefb3

Browse files
committed
add noqa: E402 isort:skip where needed
1 parent 269b9c6 commit cabefb3

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

asv_bench/benchmarks/gil.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def wrapper(fname):
3636
return wrapper
3737

3838

39-
from .pandas_vb_common import BaseIO
39+
from .pandas_vb_common import BaseIO # noqa: E402 isort:skip
4040

4141

4242
class ParallelGroupbyMethods:

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
# built documents.
142142
#
143143
# The short X.Y version.
144-
import pandas
144+
import pandas # noqa: E402 isort:skip
145145

146146
# version = '%s r%s' % (pandas.__version__, svn_version())
147147
version = str(pandas.__version__)

doc/source/user_guide/io.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3204,7 +3204,7 @@ argument to ``to_excel`` and to ``ExcelWriter``. The built-in engines are:
32043204
writer = pd.ExcelWriter('path_to_file.xlsx', engine='xlsxwriter')
32053205
32063206
# Or via pandas configuration.
3207-
from pandas import options. # noqa: E402
3207+
from pandas import options # noqa: E402
32083208
options.io.excel.xlsx.writer = 'xlsxwriter'
32093209
32103210
df.to_excel('path_to_file.xlsx', sheet_name='Sheet1')

scripts/validate_docstrings.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,20 @@
4141
# script. Setting here before matplotlib is loaded.
4242
# We don't warn for the number of open plots, as none is actually being opened
4343
os.environ["MPLBACKEND"] = "Template"
44-
import matplotlib
44+
import matplotlib # noqa: E402 isort:skip
4545

4646
matplotlib.rc("figure", max_open_warning=10000)
4747

48-
import numpy
48+
import numpy # noqa: E402 isort:skip
4949

5050
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
5151

5252
sys.path.insert(0, os.path.join(BASE_PATH))
53-
import pandas
53+
import pandas # noqa: E402 isort:skip
5454

5555
sys.path.insert(1, os.path.join(BASE_PATH, "doc", "sphinxext"))
56-
from numpydoc.docscrape import NumpyDocString
57-
from pandas.io.formats.printing import pprint_thing
56+
from numpydoc.docscrape import NumpyDocString # noqa: E402 isort:skip
57+
from pandas.io.formats.printing import pprint_thing # noqa: E402 isort:skip
5858

5959

6060
PRIVATE_CLASSES = ["NDFrame", "IndexOpsMixin"]

0 commit comments

Comments
 (0)