Fix style issues
This commit is contained in:
parent
09d94bddfe
commit
98d15de460
@ -46,8 +46,6 @@ class register:
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# pylint: disable=too-few-public-methods
|
|
||||||
|
|
||||||
def __init__(self, instance=None, name=None, nargs=None, split_args=True,
|
def __init__(self, instance=None, name=None, nargs=None, split_args=True,
|
||||||
hide=False):
|
hide=False):
|
||||||
"""Gets called on parse-time with the decorator arguments.
|
"""Gets called on parse-time with the decorator arguments.
|
||||||
|
@ -25,7 +25,7 @@ from collections import OrderedDict
|
|||||||
from configparser import (ConfigParser, ExtendedInterpolation, NoSectionError,
|
from configparser import (ConfigParser, ExtendedInterpolation, NoSectionError,
|
||||||
NoOptionError)
|
NoOptionError)
|
||||||
|
|
||||||
from qutebrowser.utils.misc import read_file
|
#from qutebrowser.utils.misc import read_file
|
||||||
import qutebrowser.config.options as opt
|
import qutebrowser.config.options as opt
|
||||||
import qutebrowser.config.sections as sect
|
import qutebrowser.config.sections as sect
|
||||||
|
|
||||||
@ -45,7 +45,8 @@ def init(confdir):
|
|||||||
"""
|
"""
|
||||||
global config, state
|
global config, state
|
||||||
logging.debug("Config init, confdir {}".format(confdir))
|
logging.debug("Config init, confdir {}".format(confdir))
|
||||||
#config = Config(confdir, 'qutebrowser.conf', read_file('qutebrowser.conf'))
|
#config = Config(confdir, 'qutebrowser.conf',
|
||||||
|
# read_file('qutebrowser.conf'))
|
||||||
config = NewConfig()
|
config = NewConfig()
|
||||||
state = Config(confdir, 'state', always_save=True)
|
state = Config(confdir, 'state', always_save=True)
|
||||||
|
|
||||||
@ -135,11 +136,18 @@ class NewConfig:
|
|||||||
return val.value
|
return val.value
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
# FIXME
|
"""Save the config file."""
|
||||||
|
# FIXME to be implemented
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def dump_userconfig(self):
|
def dump_userconfig(self):
|
||||||
# FIXME
|
"""Get the part of the config which was changed by the user.
|
||||||
|
|
||||||
|
Return:
|
||||||
|
The changed config part as string.
|
||||||
|
|
||||||
|
"""
|
||||||
|
# FIXME to be implemented
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
"""Templates for setting options."""
|
"""Templates for setting options."""
|
||||||
|
|
||||||
import logging
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
import qutebrowser.commands.utils as cmdutils
|
import qutebrowser.commands.utils as cmdutils
|
||||||
|
@ -96,7 +96,7 @@ class CompletionView(QTreeView):
|
|||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self._enabled = config.config.getboolean('general', 'show_completion')
|
self._enabled = config.config.get('general', 'show_completion')
|
||||||
self._completion_models = {}
|
self._completion_models = {}
|
||||||
self._completion_models[''] = None
|
self._completion_models[''] = None
|
||||||
self._completion_models['command'] = CommandCompletionModel()
|
self._completion_models['command'] = CommandCompletionModel()
|
||||||
|
@ -59,6 +59,7 @@ options = {
|
|||||||
'global-statement',
|
'global-statement',
|
||||||
'no-init',
|
'no-init',
|
||||||
'too-many-arguments',
|
'too-many-arguments',
|
||||||
|
'too-few-public-methods',
|
||||||
# visual noise
|
# visual noise
|
||||||
'locally-disabled',
|
'locally-disabled',
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user