Skip to content

CLN: pylint references #26091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pandas/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable-msg=W0614,W0401,W0611,W0622

# flake8: noqa

__docformat__ = 'restructuredtext'
Expand Down
1 change: 0 additions & 1 deletion pandas/compat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
Other items:
* platform checker
"""

import platform
import re
import struct
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@

# pylint: disable=W0614,W0401,W0611
# flake8: noqa

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/arrays/categorical.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1101,W0232

from shutil import get_terminal_size
import textwrap
from warnings import warn
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1101
# pylint: disable=W0212,W0703,W0622
"""
DataFrame
---------
Expand Down
1 change: 0 additions & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0231,E1101
import collections
from datetime import timedelta
import functools
Expand Down
1 change: 0 additions & 1 deletion pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=E1101
from datetime import datetime, time, timedelta
import operator
import warnings
Expand Down
1 change: 0 additions & 1 deletion pandas/core/indexes/multi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=E1101,E1103,W0232
from collections import OrderedDict
import datetime
from sys import getsizeof
Expand Down
1 change: 0 additions & 1 deletion pandas/core/indexes/period.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=E1101,E1103,W0232
from datetime import datetime, timedelta
import warnings

Expand Down
1 change: 0 additions & 1 deletion pandas/core/indexing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0223
import textwrap
import warnings

Expand Down
1 change: 0 additions & 1 deletion pandas/core/panel.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 0 additions & 2 deletions pandas/core/reshape/melt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
import re

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion pandas/core/reshape/pivot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=E1103
import numpy as np

from pandas.compat import lrange
Expand Down
2 changes: 0 additions & 2 deletions pandas/core/reshape/reshape.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
from functools import partial
import itertools

Expand Down
4 changes: 0 additions & 4 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
1 change: 0 additions & 1 deletion pandas/core/sparse/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable=W0611
# flake8: noqa
from pandas.core.arrays.sparse import SparseArray, SparseDtype
from pandas.core.sparse.frame import SparseDataFrame
Expand Down
3 changes: 0 additions & 3 deletions pandas/core/sparse/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +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')


Expand Down
3 changes: 0 additions & 3 deletions pandas/core/sparse/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions pandas/io/formats/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +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
----------
Expand Down
1 change: 0 additions & 1 deletion pandas/io/json/json.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable-msg=E1101,W0613,W0603
from io import StringIO
from itertools import islice
import os
Expand Down
1 change: 0 additions & 1 deletion pandas/io/pytables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# pylint: disable-msg=E1101,W0613,W0603
"""
High level interface to PyTables for reading and writing pandas data structures
to disk
Expand Down
1 change: 0 additions & 1 deletion pandas/plotting/_compat.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# being a bit too dynamic
# pylint: disable=E1101
from distutils.version import LooseVersion
import operator

Expand Down
1 change: 0 additions & 1 deletion pandas/plotting/_core.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# being a bit too dynamic
# pylint: disable=E1101
from collections import namedtuple
import re
from typing import List, Optional, Type
Expand Down
1 change: 0 additions & 1 deletion pandas/plotting/_misc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# being a bit too dynamic
# pylint: disable=E1101
import numpy as np

from pandas.compat import lmap, lrange
Expand Down
1 change: 0 additions & 1 deletion pandas/plotting/_style.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# being a bit too dynamic
# pylint: disable=E1101
from contextlib import contextmanager
import warnings

Expand Down
1 change: 0 additions & 1 deletion pandas/plotting/_tools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# being a bit too dynamic
# pylint: disable=E1101
from math import ceil
import warnings

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/extension/test_external_block.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable=W0102

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/frame/test_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-

# pylint: disable-msg=W0612,E1101
from copy import deepcopy
import pydoc

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/generic/test_frame.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/generic/test_generic.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable-msg=E1101,W0612

from copy import copy, deepcopy

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/generic/test_series.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable-msg=E1101,W0612

from distutils.version import LooseVersion
from operator import methodcaller

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/indexing/test_callable.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101

import numpy as np

import pandas as pd
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/indexing/test_indexing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101

""" test fancy indexing & misc """

from datetime import datetime
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/internals/test_internals.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable=W0102
from collections import OrderedDict
from datetime import date, datetime
from distutils.version import LooseVersion
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/io/json/test_pandas.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101
from collections import OrderedDict
from datetime import timedelta
from io import StringIO
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/io/test_pickle.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1101,E1103,W0232

"""
manage legacy pickle tests

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/io/test_stata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable=E1101

from collections import OrderedDict
import datetime as dt
from datetime import datetime
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/resample/test_resample_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1101

from collections import OrderedDict
from datetime import datetime

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/resample/test_resampler_grouper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1101

from textwrap import dedent

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/reshape/merge/test_join.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1103

import numpy as np
from numpy.random import randn
import pytest
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/reshape/merge/test_merge.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1103

from collections import OrderedDict
from datetime import date, datetime
import random
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/reshape/merge/test_multi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# pylint: disable=E1103

from collections import OrderedDict

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/reshape/test_melt.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101

import numpy as np
from numpy import nan
import pytest
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/reshape/test_reshape.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101

from collections import OrderedDict

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/indexing/test_alter_index.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from datetime import datetime

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/indexing/test_boolean.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/indexing/test_datetime.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from datetime import datetime, timedelta

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/indexing/test_iloc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

import numpy as np

from pandas.compat import lrange
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/indexing/test_indexing.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

""" test get/set & misc """

from datetime import timedelta
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/indexing/test_loc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/indexing/test_numeric.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

import numpy as np
import pytest

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_alter_axes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from datetime import datetime

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_analytics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from itertools import product
import operator

Expand Down
1 change: 0 additions & 1 deletion pandas/tests/series/test_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612
from collections import OrderedDict
import pydoc
import warnings
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_apply.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from collections import Counter, OrderedDict, defaultdict
from itertools import chain

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_combine_concat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from datetime import datetime

import numpy as np
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_constructors.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from collections import OrderedDict
from datetime import datetime, timedelta

Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_datetime_values.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

import calendar
from datetime import date, datetime, time
import locale
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_dtypes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from datetime import datetime, timedelta
from importlib import reload
import string
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/series/test_internals.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
# pylint: disable-msg=E1101,W0612

from datetime import datetime

import numpy as np
Expand Down
Loading