Skip to content
Permalink
Browse files

better style for pylint

  • Loading branch information...
sdpython committed May 12, 2018
1 parent 2c09507 commit 7fa3ecc600658836ff410d2613c3d1cb63fcfb7f
Showing with 64 additions and 593 deletions.
  1. +1 −17 _unittests/ut_cli/test_head_cli.py
  2. +1 −17 _unittests/ut_cli/test_tail_cli.py
  3. +1 −16 _unittests/ut_datasource/test_convert.py
  4. +1 −14 _unittests/ut_datasource/test_resources.py
  5. +2 −15 _unittests/ut_datasource/test_resources_bug.py
  6. +1 −14 _unittests/ut_datasource/test_resources_stanford.py
  7. +4 −20 _unittests/ut_documentation/test_run_notebooks.py
  8. +2 −15 _unittests/ut_files/test_files.py
  9. +2 −15 _unittests/ut_files/test_files_bz2.py
  10. +2 −15 _unittests/ut_graph/test_blockdiag.py
  11. +3 −16 _unittests/ut_graph/test_corrplot.py
  12. +3 −15 _unittests/ut_graph/test_dot.py
  13. +1 −14 _unittests/ut_languages/test_parse_code.py
  14. +2 −15 _unittests/ut_languages/test_parse_code_graph.py
  15. +2 −15 _unittests/ut_languages/test_parse_code_simple_workflow.py
  16. +1 −14 _unittests/ut_languages/test_parse_extra.py
  17. +2 −15 _unittests/ut_languages/test_rconverter.py
  18. +3 −21 _unittests/ut_module/test_convert_notebooks.py
  19. +2 −30 _unittests/ut_module/test_readme.py
  20. +2 −15 _unittests/ut_notebooks/test_folium.py
  21. +1 −33 _unittests/ut_notebooks/test_notebook.py
  22. +1 −14 _unittests/ut_notebooks/test_notebook_qgrid.py
  23. +2 −15 _unittests/ut_sql/test_database.py
  24. +1 −14 _unittests/ut_sql/test_database_bug.py
  25. +1 −14 _unittests/ut_sql/test_database_copy.py
  26. +1 −14 _unittests/ut_sql/test_database_df.py
  27. +1 −14 _unittests/ut_sql/test_database_import.py
  28. +1 −14 _unittests/ut_sql/test_database_insert.py
  29. +2 −15 _unittests/ut_sql/test_database_join.py
  30. +2 −15 _unittests/ut_sql/test_database_join_multiple.py
  31. +2 −15 _unittests/ut_sql/test_database_missing.py
  32. +3 −15 _unittests/ut_sql/test_database_special.py
  33. +1 −14 _unittests/ut_sql/test_file_columns.py
  34. +1 −14 _unittests/ut_sql/test_interface_sql.py
  35. +2 −15 _unittests/ut_sql/test_magic_command.py
  36. +2 −15 _unittests/ut_sql/test_sort.py
  37. +2 −15 _unittests/ut_sql/test_summary.py
@@ -6,6 +6,7 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG

try:
import src
@@ -20,24 +21,7 @@
sys.path.append(path)
import src

try:
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper as skip_


from pyquickhelper.loghelper import fLOG
from src.pyensae.cli import file_head_cli


@@ -6,6 +6,7 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG

try:
import src
@@ -20,24 +21,7 @@
sys.path.append(path)
import src

try:
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper as skip_


from pyquickhelper.loghelper import fLOG
from src.pyensae.cli import file_tail_cli


@@ -6,6 +6,7 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG


try:
@@ -21,23 +22,7 @@
sys.path.append(path)
import src

try:
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG
from src.pyensae.datasource.convert import dBase2df, dBase2sqllite


@@ -9,11 +9,11 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG


try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
@@ -23,21 +23,8 @@
"..")))
if path not in sys.path:
sys.path.append(path)
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG
from src.pyensae.datasource.http_retrieve import download_data


@@ -9,11 +9,12 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder


try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
@@ -23,22 +24,8 @@
"..")))
if path not in sys.path:
sys.path.append(path)
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder
from src.pyensae.datasource.http_retrieve import download_data


@@ -9,11 +9,11 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG


try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
@@ -23,21 +23,8 @@
"..")))
if path not in sys.path:
sys.path.append(path)
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG
from src.pyensae.datasource.http_retrieve import download_data


@@ -6,6 +6,10 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, is_travis_or_appveyor
from pyquickhelper.ipythonhelper import execute_notebook_list, execute_notebook_list_finalize_ut
from pyquickhelper.ipythonhelper import install_python_kernel_for_unittest


try:
@@ -21,27 +25,7 @@
sys.path.append(path)
import src

try:
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import pyquickhelper as skip_


from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, is_travis_or_appveyor
from pyquickhelper.ipythonhelper import execute_notebook_list, execute_notebook_list_finalize_ut
from pyquickhelper.ipythonhelper import install_python_kernel_for_unittest
import src.pyensae


@@ -10,11 +10,12 @@
import os
import unittest
import shlex
from pyquickhelper.loghelper import fLOG
from pyquickhelper.helpgen import docstring2html


try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
@@ -24,22 +25,8 @@
"..")))
if path not in sys.path:
sys.path.append(path)
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG
from pyquickhelper.helpgen import docstring2html
from src.pyensae.file_helper.magic_file import MagicFile
from src.pyensae.file_helper import file_tail, file_encoding
from src.pyensae.sql import Database
@@ -9,11 +9,12 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, ExtTestCase


try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
@@ -23,22 +24,8 @@
"..")))
if path not in sys.path:
sys.path.append(path)
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder, ExtTestCase
from src.pyensae.file_helper.decompress_helper import decompress_bz2


@@ -9,11 +9,12 @@
import sys
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder


try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
@@ -23,22 +24,8 @@
"..")))
if path not in sys.path:
sys.path.append(path)
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import get_temp_folder
from src.pyensae.graph_helper import draw_diagram


@@ -11,11 +11,13 @@
import unittest
import pandas
import numpy
from pyquickhelper.loghelper import fLOG, CustomLog
from pyquickhelper.pycode import get_temp_folder, ExtTestCase
from pyquickhelper.pycode import fix_tkinter_issues_virtualenv


try:
import src
import pyquickhelper as skip_
except ImportError:
path = os.path.normpath(
os.path.abspath(
@@ -25,24 +27,9 @@
"..")))
if path not in sys.path:
sys.path.append(path)
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..",
"..",
"pyquickhelper",
"src")))
if path not in sys.path:
sys.path.append(path)
import src
import pyquickhelper as skip_

from pyquickhelper.loghelper import fLOG, CustomLog
from pyquickhelper.pycode import get_temp_folder, ExtTestCase
from src.pyensae.graph_helper import Corrplot
from pyquickhelper.pycode import fix_tkinter_issues_virtualenv


class TestGraph(ExtTestCase):

0 comments on commit 7fa3ecc

Please sign in to comment.
You can’t perform that action at this time.