From 73f498606d8aa04588a0e5db9e389988ac71b56d Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Mon, 23 Dec 2019 12:51:36 -0600 Subject: Enable wrong-import-order, wrong-import-position checks --- astroid/__init__.py | 1 + pylintrc | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/astroid/__init__.py b/astroid/__init__.py index d36a5b45..9feac683 100644 --- a/astroid/__init__.py +++ b/astroid/__init__.py @@ -50,6 +50,7 @@ Del = _Context.Del del _Context +# pylint: disable=wrong-import-order,wrong-import-position from .__pkginfo__ import version as __version__ # WARNING: internal imports order matters ! diff --git a/pylintrc b/pylintrc index f86cbbe7..fc4394be 100644 --- a/pylintrc +++ b/pylintrc @@ -124,9 +124,6 @@ disable=fixme,invalid-name, missing-docstring, too-few-public-methods, unused-argument, # Not very useful when it warns about imports. duplicate-code, - # Don't care about these two too much - wrong-import-order, - wrong-import-position, # We'll have to disable this until we drop support for Python 2 stop-iteration-return, # black handles these -- cgit v1.2.1