pylint: Re-enable ungrouped-imports
This commit is contained in:
parent
f5dd392701
commit
430126dcc8
@ -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,
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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,
|
||||||
|
@ -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))
|
||||||
|
@ -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!
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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():
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user