pylint: Re-enable ungrouped-imports

This commit is contained in:
Florian Bruhin 2017-12-15 23:08:53 +01:00
parent f5dd392701
commit 430126dcc8
19 changed files with 22 additions and 24 deletions

View File

@ -27,7 +27,6 @@ disable=locally-disabled,
eval-used, eval-used,
exec-used, exec-used,
global-statement, global-statement,
ungrouped-imports,
wrong-import-position, wrong-import-position,
duplicate-code, duplicate-code,
no-else-return, no-else-return,

View File

@ -26,8 +26,8 @@ to a file on shutdown, so it makes sense to keep them as strings here.
""" """
import os import os
import html
import os.path import os.path
import html
import functools import functools
import collections import collections

View File

@ -20,13 +20,13 @@
"""Handlers for crashes and OS signals.""" """Handlers for crashes and OS signals."""
import os import os
import os.path
import sys import sys
import bdb import bdb
import pdb # noqa: T002 import pdb # noqa: T002
import signal import signal
import functools import functools
import faulthandler import faulthandler
import os.path
try: try:
# WORKAROUND for segfaults when using pdb in pytest for some reason... # WORKAROUND for segfaults when using pdb in pytest for some reason...
import readline # pylint: disable=unused-import import readline # pylint: disable=unused-import

View File

@ -20,9 +20,9 @@
"""Utilities to get and initialize data/config paths.""" """Utilities to get and initialize data/config paths."""
import os import os
import os.path
import sys import sys
import shutil import shutil
import os.path
import contextlib import contextlib
import enum import enum

View File

@ -20,12 +20,12 @@
"""Other utilities which don't fit anywhere else.""" """Other utilities which don't fit anywhere else."""
import os import os
import os.path
import io import io
import re import re
import sys import sys
import enum import enum
import json import json
import os.path
import collections import collections
import datetime import datetime
import traceback import traceback

View File

@ -22,9 +22,9 @@
import os import os
import os.path
import sys import sys
import glob import glob
import os.path
import shutil import shutil
import plistlib import plistlib
import subprocess import subprocess

View File

@ -21,9 +21,9 @@
"""Enforce perfect coverage on some files.""" """Enforce perfect coverage on some files."""
import os import os
import os.path
import sys import sys
import enum import enum
import os.path
import subprocess import subprocess
from xml.etree import ElementTree from xml.etree import ElementTree

View File

@ -21,10 +21,10 @@
"""Get qutebrowser crash information and stacktraces from coredumpctl.""" """Get qutebrowser crash information and stacktraces from coredumpctl."""
import os import os
import os.path
import sys import sys
import argparse import argparse
import subprocess import subprocess
import os.path
import tempfile import tempfile
import attr import attr

View File

@ -21,9 +21,9 @@
"""Various small code checkers.""" """Various small code checkers."""
import os import os
import os.path
import re import re
import sys import sys
import os.path
import argparse import argparse
import subprocess import subprocess
import tokenize import tokenize

View File

@ -25,8 +25,8 @@ https://bitbucket.org/logilab/pylint/issue/512/
""" """
import os import os
import sys
import os.path import os.path
import sys
import subprocess import subprocess
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,

View File

@ -21,10 +21,10 @@
"""Tester for Qt segfaults with different harfbuzz engines.""" """Tester for Qt segfaults with different harfbuzz engines."""
import os import os
import os.path
import signal import signal
import sys import sys
import subprocess import subprocess
import os.path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir, sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
os.pardir)) os.pardir))

View File

@ -21,9 +21,9 @@
"""Generate asciidoc source for qutebrowser based on docstrings.""" """Generate asciidoc source for qutebrowser based on docstrings."""
import os import os
import os.path
import sys import sys
import shutil import shutil
import os.path
import inspect import inspect
import subprocess import subprocess
import tempfile import tempfile
@ -34,11 +34,11 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir,
# We import qutebrowser.app so all @cmdutils-register decorators are run. # We import qutebrowser.app so all @cmdutils-register decorators are run.
import qutebrowser.app import qutebrowser.app
from scripts import asciidoc2html, utils
from qutebrowser import qutebrowser, commands from qutebrowser import qutebrowser, commands
from qutebrowser.commands import cmdutils, argparser from qutebrowser.commands import cmdutils, argparser
from qutebrowser.config import configdata, configtypes from qutebrowser.config import configdata, configtypes
from qutebrowser.utils import docutils, usertypes from qutebrowser.utils import docutils, usertypes
from scripts import asciidoc2html, utils
FILE_HEADER = """ FILE_HEADER = """
// DO NOT EDIT THIS FILE DIRECTLY! // DO NOT EDIT THIS FILE DIRECTLY!

View File

@ -21,9 +21,9 @@
"""Symlink PyQt into a given virtualenv.""" """Symlink PyQt into a given virtualenv."""
import os import os
import os.path
import argparse import argparse
import shutil import shutil
import os.path
import sys import sys
import subprocess import subprocess
import tempfile import tempfile

View File

@ -23,10 +23,10 @@
import re import re
import os import os
import os.path
import sys import sys
import shutil import shutil
import pstats import pstats
import os.path
import operator import operator
import pytest import pytest

View File

@ -20,10 +20,10 @@
"""Fixtures to run qutebrowser in a QProcess and communicate.""" """Fixtures to run qutebrowser in a QProcess and communicate."""
import os import os
import os.path
import re import re
import sys import sys
import time import time
import os.path
import datetime import datetime
import logging import logging
import tempfile import tempfile

View File

@ -20,8 +20,8 @@
"""Test mhtml downloads based on sample files.""" """Test mhtml downloads based on sample files."""
import os import os
import re
import os.path import os.path
import re
import collections import collections
import pytest import pytest

View File

@ -27,11 +27,6 @@ import pytest
import jinja2 import jinja2
from PyQt5.QtCore import QUrl from PyQt5.QtCore import QUrl
import helpers.utils
import qutebrowser.utils.debug
from qutebrowser.utils import utils
try: try:
from PyQt5.QtWebKit import QWebSettings from PyQt5.QtWebKit import QWebSettings
from PyQt5.QtWebKitWidgets import QWebPage from PyQt5.QtWebKitWidgets import QWebPage
@ -49,6 +44,10 @@ except ImportError:
QWebEngineSettings = None QWebEngineSettings = None
QWebEngineScript = None QWebEngineScript = None
import helpers.utils
import qutebrowser.utils.debug
from qutebrowser.utils import utils
if QWebPage is None: if QWebPage is None:
TestWebPage = None TestWebPage = None

View File

@ -22,8 +22,8 @@ import py.path # pylint: disable=no-name-in-module
import pytest import pytest
from qutebrowser.browser.webengine import spell from qutebrowser.browser.webengine import spell
from scripts import dictcli
from qutebrowser.config import configdata from qutebrowser.config import configdata
from scripts import dictcli
def afrikaans(): def afrikaans():

View File

@ -20,9 +20,9 @@
"""Tests for qutebrowser.utils.standarddir.""" """Tests for qutebrowser.utils.standarddir."""
import os import os
import os.path
import sys import sys
import json import json
import os.path
import types import types
import textwrap import textwrap
import logging import logging