summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorEnji Cooper <yaneurabeya@gmail.com>2019-11-14 13:32:44 -0800
committerClaudiu Popa <pcmanticore@gmail.com>2019-11-16 21:21:15 +0100
commit657fa7638b2884c622e61f3b06f8dba972550fb2 (patch)
treed4a7eefd26fef315cc0d823f4614c7f639cf68f5 /setup.py
parentff9424fb26c90b03ec5f6e44568833ada5dd236e (diff)
downloadastroid-git-657fa7638b2884c622e61f3b06f8dba972550fb2.tar.gz
Fix fixable pylint warnings
* Sort imports. * Remove squelching of W0704, since recent versions of pylint do not support the warning, resulting in an error with `pylint -E`. * Add `pylint: disable=unused-import` to seemingly unused imports which actually affect build behavior. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index b75cd55a..eb3d9102 100644
--- a/setup.py
+++ b/setup.py
@@ -9,13 +9,12 @@
# Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
# For details: https://github.com/PyCQA/astroid/blob/master/COPYING.LESSER
-# pylint: disable=W0404,W0622,W0704,W0613
+# pylint: disable=W0404,W0622,W0613
"""Setup script for astroid."""
import os
-from setuptools import setup, find_packages
-from setuptools.command import easy_install
-from setuptools.command import install_lib
-
+from setuptools import find_packages, setup
+from setuptools.command import easy_install # pylint: disable=unused-import
+from setuptools.command import install_lib # pylint: disable=unused-import
real_path = os.path.realpath(__file__)
astroid_dir = os.path.dirname(real_path)