From bd7b7fa51e47c5acc32f7aa08cdd1acb1eb7f908 Mon Sep 17 00:00:00 2001 From: Matt Roeschke Date: Sun, 14 Apr 2019 17:25:22 -0700 Subject: [PATCH 1/2] CLN: pylint comments --- pandas/__init__.py | 2 -- pandas/compat/__init__.py | 1 - pandas/core/api.py | 2 -- pandas/core/arrays/categorical.py | 2 -- pandas/core/frame.py | 2 -- pandas/core/generic.py | 1 - pandas/core/indexes/datetimes.py | 1 - pandas/core/indexes/multi.py | 1 - pandas/core/indexes/period.py | 1 - pandas/core/indexing.py | 1 - pandas/core/panel.py | 1 - pandas/core/reshape/melt.py | 2 -- pandas/core/reshape/pivot.py | 1 - pandas/core/reshape/reshape.py | 2 -- pandas/core/series.py | 4 ---- pandas/core/sparse/api.py | 1 - pandas/core/sparse/frame.py | 2 -- pandas/core/sparse/series.py | 3 --- pandas/io/formats/format.py | 2 -- pandas/io/json/json.py | 1 - pandas/io/pytables.py | 1 - pandas/plotting/_compat.py | 1 - pandas/plotting/_core.py | 1 - pandas/plotting/_misc.py | 1 - pandas/plotting/_style.py | 1 - pandas/plotting/_tools.py | 1 - pandas/tests/extension/test_external_block.py | 2 -- pandas/tests/frame/test_api.py | 2 -- pandas/tests/generic/test_frame.py | 2 -- pandas/tests/generic/test_generic.py | 2 -- pandas/tests/generic/test_series.py | 2 -- pandas/tests/indexing/test_callable.py | 2 -- pandas/tests/indexing/test_indexing.py | 2 -- pandas/tests/internals/test_internals.py | 1 - pandas/tests/io/json/test_pandas.py | 1 - pandas/tests/io/test_pickle.py | 2 -- pandas/tests/io/test_stata.py | 2 -- pandas/tests/resample/test_resample_api.py | 2 -- pandas/tests/resample/test_resampler_grouper.py | 2 -- pandas/tests/reshape/merge/test_join.py | 2 -- pandas/tests/reshape/merge/test_merge.py | 2 -- pandas/tests/reshape/merge/test_multi.py | 2 -- pandas/tests/reshape/test_melt.py | 2 -- pandas/tests/reshape/test_reshape.py | 2 -- pandas/tests/series/indexing/test_alter_index.py | 2 -- pandas/tests/series/indexing/test_boolean.py | 2 -- pandas/tests/series/indexing/test_datetime.py | 2 -- pandas/tests/series/indexing/test_iloc.py | 2 -- pandas/tests/series/indexing/test_indexing.py | 2 -- pandas/tests/series/indexing/test_loc.py | 2 -- pandas/tests/series/indexing/test_numeric.py | 2 -- pandas/tests/series/test_alter_axes.py | 2 -- pandas/tests/series/test_analytics.py | 2 -- pandas/tests/series/test_api.py | 1 - pandas/tests/series/test_apply.py | 2 -- pandas/tests/series/test_combine_concat.py | 2 -- pandas/tests/series/test_constructors.py | 2 -- pandas/tests/series/test_datetime_values.py | 2 -- pandas/tests/series/test_dtypes.py | 2 -- pandas/tests/series/test_internals.py | 2 -- pandas/tests/series/test_io.py | 2 -- pandas/tests/series/test_missing.py | 2 -- pandas/tests/series/test_operators.py | 2 -- pandas/tests/series/test_quantile.py | 2 -- pandas/tests/series/test_replace.py | 2 -- pandas/tests/series/test_repr.py | 2 -- pandas/tests/series/test_subclass.py | 1 - pandas/tests/series/test_timeseries.py | 2 -- pandas/tests/sparse/frame/test_frame.py | 2 -- pandas/tests/sparse/series/test_series.py | 2 -- pandas/tests/sparse/test_combine_concat.py | 1 - pandas/tests/sparse/test_indexing.py | 2 -- pandas/tests/test_expressions.py | 3 --- pandas/tests/test_multilevel.py | 1 - pandas/tests/test_strings.py | 2 -- 75 files changed, 132 deletions(-) diff --git a/pandas/__init__.py b/pandas/__init__.py index d3e6d97960fb3..bd367bbe27d5e 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -1,5 +1,3 @@ -# pylint: disable-msg=W0614,W0401,W0611,W0622 - # flake8: noqa __docformat__ = 'restructuredtext' diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 54a7afd90a09a..53680e578f72a 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -14,7 +14,6 @@ Other items: * platform checker """ -# pylint disable=W0611 # flake8: noqa import re diff --git a/pandas/core/api.py b/pandas/core/api.py index 09ca0c82395e2..4b46e14d950a1 100644 --- a/pandas/core/api.py +++ b/pandas/core/api.py @@ -1,5 +1,3 @@ - -# pylint: disable=W0614,W0401,W0611 # flake8: noqa import numpy as np diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index cd49946652566..53adf99148052 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1,5 +1,3 @@ -# pylint: disable=E1101,W0232 - from shutil import get_terminal_size import textwrap from warnings import warn diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fdc99e957e257..43fc162496ee4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1,5 +1,3 @@ -# pylint: disable=E1101 -# pylint: disable=W0212,W0703,W0622 """ DataFrame --------- diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 885c499c58dfa..0368045cd3ab5 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1,4 +1,3 @@ -# pylint: disable=W0231,E1101 import collections from datetime import timedelta import functools diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index ff6d80dbadded..a0dd19b7ecd4b 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1,4 +1,3 @@ -# pylint: disable=E1101 from datetime import datetime, time, timedelta import operator import warnings diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index f9347117bec23..34413f441a5d6 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1,4 +1,3 @@ -# pylint: disable=E1101,E1103,W0232 from collections import OrderedDict import datetime from sys import getsizeof diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 133cf1c0755cf..e2c222f11d85d 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -1,4 +1,3 @@ -# pylint: disable=E1101,E1103,W0232 from datetime import datetime, timedelta import warnings diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 79bdfebd9f90b..0b7958a4e7b67 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1,4 +1,3 @@ -# pylint: disable=W0223 import textwrap import warnings diff --git a/pandas/core/panel.py b/pandas/core/panel.py index 542b1075313bf..97066384f3e4b 100644 --- a/pandas/core/panel.py +++ b/pandas/core/panel.py @@ -1,7 +1,6 @@ """ Contains data structures designed for manipulating panel (3-dimensional) data """ -# pylint: disable=E1103,W0231,W0212,W0621 from collections import OrderedDict import warnings diff --git a/pandas/core/reshape/melt.py b/pandas/core/reshape/melt.py index 99224f6fb7c5b..ece5144eba3a1 100644 --- a/pandas/core/reshape/melt.py +++ b/pandas/core/reshape/melt.py @@ -1,5 +1,3 @@ -# pylint: disable=E1101,E1103 -# pylint: disable=W0703,W0622,W0613,W0201 import re import numpy as np diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index 580810f3b6829..3aaae3b59a0d4 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -1,4 +1,3 @@ -# pylint: disable=E1103 import numpy as np from pandas.compat import lrange diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index 33b8384f1dd86..b88e3d8ee828c 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -1,5 +1,3 @@ -# pylint: disable=E1101,E1103 -# pylint: disable=W0703,W0622,W0613,W0201 from functools import partial import itertools diff --git a/pandas/core/series.py b/pandas/core/series.py index 8a22765d85aec..061fc1e7b60c4 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -51,10 +51,6 @@ import pandas.io.formats.format as fmt import pandas.plotting._core as gfx -# pylint: disable=E1101,E1103 -# pylint: disable=W0703,W0622,W0613,W0201 - - __all__ = ['Series'] _shared_doc_kwargs = dict( diff --git a/pandas/core/sparse/api.py b/pandas/core/sparse/api.py index 33e8b921905ba..6a00fa570b2ac 100644 --- a/pandas/core/sparse/api.py +++ b/pandas/core/sparse/api.py @@ -1,4 +1,3 @@ -# pylint: disable=W0611 # flake8: noqa from pandas.core.arrays.sparse import SparseArray, SparseDtype from pandas.core.sparse.frame import SparseDataFrame diff --git a/pandas/core/sparse/frame.py b/pandas/core/sparse/frame.py index 08729442e701f..0f5e52886a11d 100644 --- a/pandas/core/sparse/frame.py +++ b/pandas/core/sparse/frame.py @@ -30,8 +30,6 @@ from pandas.core.series import Series from pandas.core.sparse.series import SparseSeries -# pylint: disable=E1101,E1103,W0231,E0202 - _shared_doc_kwargs = dict(klass='SparseDataFrame') diff --git a/pandas/core/sparse/series.py b/pandas/core/sparse/series.py index c5b07c7b6c881..11231ce90b6b9 100644 --- a/pandas/core/sparse/series.py +++ b/pandas/core/sparse/series.py @@ -2,9 +2,6 @@ Data structures for sparse float data. Life is made simpler by dealing only with float64 data """ - -# pylint: disable=E1101,E1103,W0231 - from collections import abc import warnings diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index ce724a32a7a56..26c3ca0aec896 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -35,8 +35,6 @@ from pandas.io.common import _expand_user, _stringify_path from pandas.io.formats.printing import adjoin, justify, pprint_thing -# pylint: disable=W0141 - common_docstring = """ Parameters diff --git a/pandas/io/json/json.py b/pandas/io/json/json.py index 28cc768ba4e21..84b812535025e 100644 --- a/pandas/io/json/json.py +++ b/pandas/io/json/json.py @@ -1,4 +1,3 @@ -# pylint: disable-msg=E1101,W0613,W0603 from io import StringIO from itertools import islice import os diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 2dedeaf0a4cda..4aba8f3f0ac77 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1,4 +1,3 @@ -# pylint: disable-msg=E1101,W0613,W0603 """ High level interface to PyTables for reading and writing pandas data structures to disk diff --git a/pandas/plotting/_compat.py b/pandas/plotting/_compat.py index 67f3d983480f8..4077bef8f36f5 100644 --- a/pandas/plotting/_compat.py +++ b/pandas/plotting/_compat.py @@ -1,5 +1,4 @@ # being a bit too dynamic -# pylint: disable=E1101 from distutils.version import LooseVersion import operator diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index af23c13063aa3..3bd0562b178a5 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -1,5 +1,4 @@ # being a bit too dynamic -# pylint: disable=E1101 from collections import namedtuple import re from typing import List, Optional, Type diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index 1f60febaef1e4..cefc4d8aca4f2 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -1,5 +1,4 @@ # being a bit too dynamic -# pylint: disable=E1101 import numpy as np from pandas.compat import lmap, lrange diff --git a/pandas/plotting/_style.py b/pandas/plotting/_style.py index 43365bd91c724..0947908803559 100644 --- a/pandas/plotting/_style.py +++ b/pandas/plotting/_style.py @@ -1,5 +1,4 @@ # being a bit too dynamic -# pylint: disable=E1101 from contextlib import contextmanager import warnings diff --git a/pandas/plotting/_tools.py b/pandas/plotting/_tools.py index 01a26edb309bc..39f3554f509a7 100644 --- a/pandas/plotting/_tools.py +++ b/pandas/plotting/_tools.py @@ -1,5 +1,4 @@ # being a bit too dynamic -# pylint: disable=E1101 from math import ceil import warnings diff --git a/pandas/tests/extension/test_external_block.py b/pandas/tests/extension/test_external_block.py index 1b3f285e64059..8743de0b18912 100644 --- a/pandas/tests/extension/test_external_block.py +++ b/pandas/tests/extension/test_external_block.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable=W0102 - import numpy as np import pytest diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 600575b5255d2..5926dd73aee36 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- - -# pylint: disable-msg=W0612,E1101 from copy import deepcopy import pydoc diff --git a/pandas/tests/generic/test_frame.py b/pandas/tests/generic/test_frame.py index 9ae7252104746..f075682ac19f1 100644 --- a/pandas/tests/generic/test_frame.py +++ b/pandas/tests/generic/test_frame.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=E1101,W0612 - from copy import deepcopy from distutils.version import LooseVersion from operator import methodcaller diff --git a/pandas/tests/generic/test_generic.py b/pandas/tests/generic/test_generic.py index d3b63e428b374..fdcf0e2172708 100644 --- a/pandas/tests/generic/test_generic.py +++ b/pandas/tests/generic/test_generic.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=E1101,W0612 - from copy import copy, deepcopy import numpy as np diff --git a/pandas/tests/generic/test_series.py b/pandas/tests/generic/test_series.py index dd311dc214d30..9c30814ee6cab 100644 --- a/pandas/tests/generic/test_series.py +++ b/pandas/tests/generic/test_series.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=E1101,W0612 - from distutils.version import LooseVersion from operator import methodcaller diff --git a/pandas/tests/indexing/test_callable.py b/pandas/tests/indexing/test_callable.py index d8f65c211a115..6f66088a151ae 100644 --- a/pandas/tests/indexing/test_callable.py +++ b/pandas/tests/indexing/test_callable.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=W0612,E1101 - import numpy as np import pandas as pd diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py index 3cdae198cad31..5cb2b138f18e3 100644 --- a/pandas/tests/indexing/test_indexing.py +++ b/pandas/tests/indexing/test_indexing.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=W0612,E1101 - """ test fancy indexing & misc """ from datetime import datetime diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py index 6c672db4070fb..4899703c0c72b 100644 --- a/pandas/tests/internals/test_internals.py +++ b/pandas/tests/internals/test_internals.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable=W0102 from collections import OrderedDict from datetime import date, datetime from distutils.version import LooseVersion diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 9ca5bf95e5e08..23e1968524203 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=W0612,E1101 from collections import OrderedDict from datetime import timedelta from io import StringIO diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py index b4e942fc086a9..114c0bba0c31f 100644 --- a/pandas/tests/io/test_pickle.py +++ b/pandas/tests/io/test_pickle.py @@ -1,5 +1,3 @@ -# pylint: disable=E1101,E1103,W0232 - """ manage legacy pickle tests diff --git a/pandas/tests/io/test_stata.py b/pandas/tests/io/test_stata.py index 52fead0166dc5..109cc6dd4b886 100644 --- a/pandas/tests/io/test_stata.py +++ b/pandas/tests/io/test_stata.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable=E1101 - from collections import OrderedDict import datetime as dt from datetime import datetime diff --git a/pandas/tests/resample/test_resample_api.py b/pandas/tests/resample/test_resample_api.py index ff4088f5c4376..7157ecccace00 100644 --- a/pandas/tests/resample/test_resample_api.py +++ b/pandas/tests/resample/test_resample_api.py @@ -1,5 +1,3 @@ -# pylint: disable=E1101 - from collections import OrderedDict from datetime import datetime diff --git a/pandas/tests/resample/test_resampler_grouper.py b/pandas/tests/resample/test_resampler_grouper.py index 6aa844dc119c1..959b6febcf1c9 100644 --- a/pandas/tests/resample/test_resampler_grouper.py +++ b/pandas/tests/resample/test_resampler_grouper.py @@ -1,5 +1,3 @@ -# pylint: disable=E1101 - from textwrap import dedent import numpy as np diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py index 63ee899944e92..69b0f71c4c335 100644 --- a/pandas/tests/reshape/merge/test_join.py +++ b/pandas/tests/reshape/merge/test_join.py @@ -1,5 +1,3 @@ -# pylint: disable=E1103 - import numpy as np from numpy.random import randn import pytest diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index 8d8f8a723c97a..59910f8e0b79f 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -1,5 +1,3 @@ -# pylint: disable=E1103 - from collections import OrderedDict from datetime import date, datetime import random diff --git a/pandas/tests/reshape/merge/test_multi.py b/pandas/tests/reshape/merge/test_multi.py index 7e8b5b1120bc6..ed51b875d415d 100644 --- a/pandas/tests/reshape/merge/test_multi.py +++ b/pandas/tests/reshape/merge/test_multi.py @@ -1,5 +1,3 @@ -# pylint: disable=E1103 - from collections import OrderedDict import numpy as np diff --git a/pandas/tests/reshape/test_melt.py b/pandas/tests/reshape/test_melt.py index 203e565818f34..bc1d810238688 100644 --- a/pandas/tests/reshape/test_melt.py +++ b/pandas/tests/reshape/test_melt.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=W0612,E1101 - import numpy as np from numpy import nan import pytest diff --git a/pandas/tests/reshape/test_reshape.py b/pandas/tests/reshape/test_reshape.py index c6e025324bf4a..ca083bbde8428 100644 --- a/pandas/tests/reshape/test_reshape.py +++ b/pandas/tests/reshape/test_reshape.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=W0612,E1101 - from collections import OrderedDict import numpy as np diff --git a/pandas/tests/series/indexing/test_alter_index.py b/pandas/tests/series/indexing/test_alter_index.py index edc21282ccafa..63e493c5d7b53 100644 --- a/pandas/tests/series/indexing/test_alter_index.py +++ b/pandas/tests/series/indexing/test_alter_index.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime import numpy as np diff --git a/pandas/tests/series/indexing/test_boolean.py b/pandas/tests/series/indexing/test_boolean.py index a94b0c863b536..66c357e5292d4 100644 --- a/pandas/tests/series/indexing/test_boolean.py +++ b/pandas/tests/series/indexing/test_boolean.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import numpy as np import pytest diff --git a/pandas/tests/series/indexing/test_datetime.py b/pandas/tests/series/indexing/test_datetime.py index 2d2eb6db7c51d..02da8b6cc5eb2 100644 --- a/pandas/tests/series/indexing/test_datetime.py +++ b/pandas/tests/series/indexing/test_datetime.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime, timedelta import numpy as np diff --git a/pandas/tests/series/indexing/test_iloc.py b/pandas/tests/series/indexing/test_iloc.py index 95c940b7518f4..f5352bce291f6 100644 --- a/pandas/tests/series/indexing/test_iloc.py +++ b/pandas/tests/series/indexing/test_iloc.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import numpy as np from pandas.compat import lrange diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py index 98a83400ea7ab..37e3831fb3f29 100644 --- a/pandas/tests/series/indexing/test_indexing.py +++ b/pandas/tests/series/indexing/test_indexing.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - """ test get/set & misc """ from datetime import timedelta diff --git a/pandas/tests/series/indexing/test_loc.py b/pandas/tests/series/indexing/test_loc.py index 8c1709ff016b3..a455c0c502420 100644 --- a/pandas/tests/series/indexing/test_loc.py +++ b/pandas/tests/series/indexing/test_loc.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import numpy as np import pytest diff --git a/pandas/tests/series/indexing/test_numeric.py b/pandas/tests/series/indexing/test_numeric.py index 2f1e89b1146ae..46920b6c6c163 100644 --- a/pandas/tests/series/indexing/test_numeric.py +++ b/pandas/tests/series/indexing/test_numeric.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import numpy as np import pytest diff --git a/pandas/tests/series/test_alter_axes.py b/pandas/tests/series/test_alter_axes.py index 264297faec1ce..e01a4c4f1842d 100644 --- a/pandas/tests/series/test_alter_axes.py +++ b/pandas/tests/series/test_alter_axes.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime import numpy as np diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py index 9e44cc32f8f45..b01ded138be7f 100644 --- a/pandas/tests/series/test_analytics.py +++ b/pandas/tests/series/test_analytics.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from itertools import product import operator diff --git a/pandas/tests/series/test_api.py b/pandas/tests/series/test_api.py index 81642f65f05a4..bc27d5dcad442 100644 --- a/pandas/tests/series/test_api.py +++ b/pandas/tests/series/test_api.py @@ -1,5 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 from collections import OrderedDict import pydoc import warnings diff --git a/pandas/tests/series/test_apply.py b/pandas/tests/series/test_apply.py index 162a27db34cb1..217f4697d6140 100644 --- a/pandas/tests/series/test_apply.py +++ b/pandas/tests/series/test_apply.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from collections import Counter, OrderedDict, defaultdict from itertools import chain diff --git a/pandas/tests/series/test_combine_concat.py b/pandas/tests/series/test_combine_concat.py index 45e3dffde60f7..43190db63f2c6 100644 --- a/pandas/tests/series/test_combine_concat.py +++ b/pandas/tests/series/test_combine_concat.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime import numpy as np diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index 121081e041ef4..460966fa8ae39 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from collections import OrderedDict from datetime import datetime, timedelta diff --git a/pandas/tests/series/test_datetime_values.py b/pandas/tests/series/test_datetime_values.py index a05bd2965fb6e..2d2d6306f5360 100644 --- a/pandas/tests/series/test_datetime_values.py +++ b/pandas/tests/series/test_datetime_values.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import calendar from datetime import date, datetime, time import locale diff --git a/pandas/tests/series/test_dtypes.py b/pandas/tests/series/test_dtypes.py index d044a220965f9..c17039fb11409 100644 --- a/pandas/tests/series/test_dtypes.py +++ b/pandas/tests/series/test_dtypes.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime, timedelta from importlib import reload import string diff --git a/pandas/tests/series/test_internals.py b/pandas/tests/series/test_internals.py index 26b868872ee0d..dfc15146307c9 100644 --- a/pandas/tests/series/test_internals.py +++ b/pandas/tests/series/test_internals.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime import numpy as np diff --git a/pandas/tests/series/test_io.py b/pandas/tests/series/test_io.py index 20cc05f9a5cee..bbfb5db61c9f9 100644 --- a/pandas/tests/series/test_io.py +++ b/pandas/tests/series/test_io.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import collections from datetime import datetime from io import StringIO diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py index 7b1df6917e77c..94b643900ee0f 100644 --- a/pandas/tests/series/test_missing.py +++ b/pandas/tests/series/test_missing.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime, timedelta import numpy as np diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py index cb8d5239aa684..9257c7d9977dd 100644 --- a/pandas/tests/series/test_operators.py +++ b/pandas/tests/series/test_operators.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime, timedelta import operator diff --git a/pandas/tests/series/test_quantile.py b/pandas/tests/series/test_quantile.py index 4f462e11e9bb9..1d39cbbe51d23 100644 --- a/pandas/tests/series/test_quantile.py +++ b/pandas/tests/series/test_quantile.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import numpy as np import pytest diff --git a/pandas/tests/series/test_replace.py b/pandas/tests/series/test_replace.py index f71877dabf3bd..e37e0b92a7ba4 100644 --- a/pandas/tests/series/test_replace.py +++ b/pandas/tests/series/test_replace.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - import numpy as np import pytest diff --git a/pandas/tests/series/test_repr.py b/pandas/tests/series/test_repr.py index 9ed7e7e0e75ec..4ee1627831824 100644 --- a/pandas/tests/series/test_repr.py +++ b/pandas/tests/series/test_repr.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime, timedelta import numpy as np diff --git a/pandas/tests/series/test_subclass.py b/pandas/tests/series/test_subclass.py index 68a162ee4c287..deb09a8a9dac3 100644 --- a/pandas/tests/series/test_subclass.py +++ b/pandas/tests/series/test_subclass.py @@ -1,5 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 import numpy as np import pandas as pd diff --git a/pandas/tests/series/test_timeseries.py b/pandas/tests/series/test_timeseries.py index 3a82339375699..dbd1d4bcb8eb0 100644 --- a/pandas/tests/series/test_timeseries.py +++ b/pandas/tests/series/test_timeseries.py @@ -1,6 +1,4 @@ # coding=utf-8 -# pylint: disable-msg=E1101,W0612 - from datetime import datetime, time, timedelta from io import StringIO from itertools import product diff --git a/pandas/tests/sparse/frame/test_frame.py b/pandas/tests/sparse/frame/test_frame.py index 45df08ccfeb48..f2cc826918789 100644 --- a/pandas/tests/sparse/frame/test_frame.py +++ b/pandas/tests/sparse/frame/test_frame.py @@ -1,5 +1,3 @@ -# pylint: disable-msg=E1101,W0612 - import operator import numpy as np diff --git a/pandas/tests/sparse/series/test_series.py b/pandas/tests/sparse/series/test_series.py index 703ae3bde71d1..2c721e1009952 100644 --- a/pandas/tests/sparse/series/test_series.py +++ b/pandas/tests/sparse/series/test_series.py @@ -1,5 +1,3 @@ -# pylint: disable-msg=E1101,W0612 - from datetime import datetime import operator diff --git a/pandas/tests/sparse/test_combine_concat.py b/pandas/tests/sparse/test_combine_concat.py index 97d5aaca82778..51875148daadb 100644 --- a/pandas/tests/sparse/test_combine_concat.py +++ b/pandas/tests/sparse/test_combine_concat.py @@ -1,4 +1,3 @@ -# pylint: disable-msg=E1101,W0612 import itertools import numpy as np diff --git a/pandas/tests/sparse/test_indexing.py b/pandas/tests/sparse/test_indexing.py index 6d8c6f13cd32b..fb6cae3ad6deb 100644 --- a/pandas/tests/sparse/test_indexing.py +++ b/pandas/tests/sparse/test_indexing.py @@ -1,5 +1,3 @@ -# pylint: disable-msg=E1101,W0612 - import numpy as np import pytest diff --git a/pandas/tests/test_expressions.py b/pandas/tests/test_expressions.py index 53d62a492794e..0c8c33b3db8cf 100644 --- a/pandas/tests/test_expressions.py +++ b/pandas/tests/test_expressions.py @@ -14,9 +14,6 @@ from pandas.io.formats.printing import pprint_thing -# pylint: disable-msg=W0612,E1101 - - _frame = DataFrame(randn(10000, 4), columns=list('ABCD'), dtype='float64') _frame2 = DataFrame(randn(100, 4), columns=list('ABCD'), dtype='float64') _mixed = DataFrame({'A': _frame['A'].copy(), diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 992c743849fbb..799571da8bdc4 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=W0612,E1101,W0141 import datetime from io import StringIO import itertools diff --git a/pandas/tests/test_strings.py b/pandas/tests/test_strings.py index 69c76d7a090c4..22200b72b852d 100644 --- a/pandas/tests/test_strings.py +++ b/pandas/tests/test_strings.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -# pylint: disable-msg=E1101,W0612 - from datetime import datetime, timedelta import re From 14527475e1d69627d3bdd880ed05e23f9bdde48f Mon Sep 17 00:00:00 2001 From: Matt Roeschke Date: Sun, 14 Apr 2019 17:56:10 -0700 Subject: [PATCH 2/2] isort --- pandas/core/sparse/frame.py | 1 - pandas/io/formats/format.py | 1 - 2 files changed, 2 deletions(-) diff --git a/pandas/core/sparse/frame.py b/pandas/core/sparse/frame.py index 0f5e52886a11d..e7f507055709d 100644 --- a/pandas/core/sparse/frame.py +++ b/pandas/core/sparse/frame.py @@ -30,7 +30,6 @@ from pandas.core.series import Series from pandas.core.sparse.series import SparseSeries - _shared_doc_kwargs = dict(klass='SparseDataFrame') diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 26c3ca0aec896..c7524a10e577c 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -35,7 +35,6 @@ from pandas.io.common import _expand_user, _stringify_path from pandas.io.formats.printing import adjoin, justify, pprint_thing - common_docstring = """ Parameters ----------