summaryrefslogtreecommitdiff
path: root/doc/summarize.py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2020-01-28 13:46:25 +1300
committerMike Taves <mwtoews@gmail.com>2020-01-28 13:46:25 +1300
commitd2f1d7704c5f55fc39cd040acf4a07ddce88319b (patch)
tree455248691e966ba665ac53bddf2fa4f2a689e538 /doc/summarize.py
parentf398a0df8a2105b2fdeaeab54505451169b0a869 (diff)
downloadnumpy-d2f1d7704c5f55fc39cd040acf4a07ddce88319b.tar.gz
STY,MAINT: avoid 'multiple imports on one line' (flake8 E401)
* PEP 8: "Imports should usually be on separate lines" * Where modified, sort imported modules alphabetically * Clean-up unused imports from these expanded lines
Diffstat (limited to 'doc/summarize.py')
-rwxr-xr-xdoc/summarize.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/summarize.py b/doc/summarize.py
index ea2397538..5a3088267 100755
--- a/doc/summarize.py
+++ b/doc/summarize.py
@@ -5,8 +5,12 @@ summarize.py
Show a summary about which NumPy functions are documented and which are not.
"""
-import os, glob, re, sys, inspect, optparse
import collections.abc
+import glob
+import inspect
+import optparse
+import os
+import sys
sys.path.append(os.path.join(os.path.dirname(__file__), 'sphinxext'))
from sphinxext.phantom_import import import_phantom_module
@@ -98,7 +102,11 @@ def check_numpy():
documented = get_documented(glob.glob(SOURCE_DIR + '/*.rst'))
undocumented = {}
- import numpy, numpy.fft, numpy.linalg, numpy.random
+ import numpy
+ import numpy.fft
+ import numpy.linalg
+ import numpy.random
+
for mod in [numpy, numpy.fft, numpy.linalg, numpy.random,
numpy.ctypeslib, numpy.emath, numpy.ma]:
undocumented.update(get_undocumented(documented, mod, skip=SKIP_LIST))