Targetting E126 - Continuation line over-indented for hanging indent

https://www.flake8rules.com/rules/E126.html
This commit is contained in:
Stephan Kulow 2022-02-18 16:02:08 +01:00
parent dc62b2ed78
commit 1383ae9725
5 changed files with 47 additions and 47 deletions

View File

@ -1,4 +1,4 @@
[flake8] [flake8]
exclude = abichecker exclude = abichecker
max-line-length = 100 max-line-length = 100
ignore = W503,W504,E501,F401,E128,E251,E201,E202,E302,E305,F841,E261,E712,E126 ignore = W503,W504,E501,F401,E128,E251,E201,E202,E302,E305,F841,E261,E712

View File

@ -84,12 +84,12 @@ class ReviewBot(object):
# map of default config entries # map of default config entries
config_defaults = { config_defaults = {
# list of tuples (prefix, apiurl, submitrequestprefix) # list of tuples (prefix, apiurl, submitrequestprefix)
# set this if the obs instance maps another instance into it's # set this if the obs instance maps another instance into it's
# namespace # namespace
'project_namespace_api_map': [ 'project_namespace_api_map': [
('openSUSE.org:', 'https://api.opensuse.org', 'obsrq'), ('openSUSE.org:', 'https://api.opensuse.org', 'obsrq'),
]} ]}
def __init__(self, apiurl = None, dryrun = False, logger = None, user = None, group = None): def __init__(self, apiurl = None, dryrun = False, logger = None, user = None, group = None):
self.apiurl = apiurl self.apiurl = apiurl

View File

@ -24,27 +24,27 @@ class BiArchTool(ToolBase.ToolBase):
self.rdeps = None self.rdeps = None
self.package_metas = dict() self.package_metas = dict()
self.whitelist = { self.whitelist = {
'i586': set([ 'i586': set([
'bzr', 'bzr',
'git', 'git',
# _link to baselibs package # _link to baselibs package
'libjpeg62-turbo', 'libjpeg62-turbo',
'mercurial', 'mercurial',
'subversion', 'subversion',
'ovmf']) 'ovmf'])
} }
self.blacklist = { self.blacklist = {
'i586': set([ 'i586': set([
'belle-sip', 'belle-sip',
'release-notes-openSUSE', 'release-notes-openSUSE',
'openSUSE-EULAs', # translate-toolkit 'openSUSE-EULAs', # translate-toolkit
'skelcd-openSUSE', 'skelcd-openSUSE',
'plasma5-workspace', 'plasma5-workspace',
'patterns-base', 'patterns-base',
'patterns-fonts', 'patterns-fonts',
'patterns-rpm-macros', 'patterns-rpm-macros',
'patterns-yast', 'patterns-yast',
'000release-packages']) '000release-packages'])
} }
def get_filelist(self, project, package, expand = False): def get_filelist(self, project, package, expand = False):

View File

@ -172,11 +172,11 @@ def main(args):
fullname = Person[userid][1] fullname = Person[userid][1]
subject = '%s - %s - Build fail notification' % (project, package) subject = '%s - %s - Build fail notification' % (project, package)
text = MAIL_TEMPLATES[Reminded[package].remindCount - 1] % { text = MAIL_TEMPLATES[Reminded[package].remindCount - 1] % {
'recipient': fullname, 'recipient': fullname,
'sender': sender, 'sender': sender,
'project': project, 'project': project,
'package': package, 'package': package,
'date': time.ctime(Reminded[package].firstfail) 'date': time.ctime(Reminded[package].firstfail)
} }
SendMail(logger, project, sender, to, fullname, subject, text) SendMail(logger, project, sender, to, fullname, subject, text)
elif Reminded[package].remindCount == 4: elif Reminded[package].remindCount == 4:

View File

@ -128,24 +128,24 @@ class FccSubmitter(object):
self.apiurl = osc.conf.config['apiurl'] self.apiurl = osc.conf.config['apiurl']
self.debug = osc.conf.config['debug'] self.debug = osc.conf.config['debug']
self.sle_base_prjs = [ self.sle_base_prjs = [
'SUSE:SLE-15-SP2:GA', 'SUSE:SLE-15-SP2:GA',
'SUSE:SLE-15-SP1:Update', 'SUSE:SLE-15-SP1:Update',
'SUSE:SLE-15-SP1:GA', 'SUSE:SLE-15-SP1:GA',
'SUSE:SLE-15:Update', 'SUSE:SLE-15:Update',
'SUSE:SLE-15:GA', 'SUSE:SLE-15:GA',
'SUSE:SLE-12-SP4:Update', 'SUSE:SLE-12-SP4:Update',
'SUSE:SLE-12-SP4:GA', 'SUSE:SLE-12-SP4:GA',
'SUSE:SLE-12-SP3:Update', 'SUSE:SLE-12-SP3:Update',
'SUSE:SLE-12-SP3:GA', 'SUSE:SLE-12-SP3:GA',
'SUSE:SLE-12-SP2:Update', 'SUSE:SLE-12-SP2:Update',
'SUSE:SLE-12-SP2:GA', 'SUSE:SLE-12-SP2:GA',
'SUSE:SLE-12-SP1:Update', 'SUSE:SLE-12-SP1:Update',
'SUSE:SLE-12-SP1:GA', 'SUSE:SLE-12-SP1:GA',
'SUSE:SLE-12:Update', 'SUSE:SLE-12:Update',
'SUSE:SLE-12:GA'] 'SUSE:SLE-12:GA']
# the skip list against devel project # the skip list against devel project
self.skip_devel_project_list = [ self.skip_devel_project_list = [
'mobile:synchronization:FACTORY'] 'mobile:synchronization:FACTORY']
# put the except packages from skip_devel_project_list, use regex in this list, eg. "^golang-x-(\w+)", "^nodejs$" # put the except packages from skip_devel_project_list, use regex in this list, eg. "^golang-x-(\w+)", "^nodejs$"
self.except_pkgs_list = [] self.except_pkgs_list = []