Targetting E126 - Continuation line over-indented for hanging indent
https://www.flake8rules.com/rules/E126.html
This commit is contained in:
parent
dc62b2ed78
commit
1383ae9725
2
.flake8
2
.flake8
@ -1,4 +1,4 @@
|
||||
[flake8]
|
||||
exclude = abichecker
|
||||
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
|
||||
|
12
ReviewBot.py
12
ReviewBot.py
@ -84,12 +84,12 @@ class ReviewBot(object):
|
||||
|
||||
# map of default config entries
|
||||
config_defaults = {
|
||||
# list of tuples (prefix, apiurl, submitrequestprefix)
|
||||
# set this if the obs instance maps another instance into it's
|
||||
# namespace
|
||||
'project_namespace_api_map': [
|
||||
('openSUSE.org:', 'https://api.opensuse.org', 'obsrq'),
|
||||
]}
|
||||
# list of tuples (prefix, apiurl, submitrequestprefix)
|
||||
# set this if the obs instance maps another instance into it's
|
||||
# namespace
|
||||
'project_namespace_api_map': [
|
||||
('openSUSE.org:', 'https://api.opensuse.org', 'obsrq'),
|
||||
]}
|
||||
|
||||
def __init__(self, apiurl = None, dryrun = False, logger = None, user = None, group = None):
|
||||
self.apiurl = apiurl
|
||||
|
@ -24,27 +24,27 @@ class BiArchTool(ToolBase.ToolBase):
|
||||
self.rdeps = None
|
||||
self.package_metas = dict()
|
||||
self.whitelist = {
|
||||
'i586': set([
|
||||
'bzr',
|
||||
'git',
|
||||
# _link to baselibs package
|
||||
'libjpeg62-turbo',
|
||||
'mercurial',
|
||||
'subversion',
|
||||
'ovmf'])
|
||||
'i586': set([
|
||||
'bzr',
|
||||
'git',
|
||||
# _link to baselibs package
|
||||
'libjpeg62-turbo',
|
||||
'mercurial',
|
||||
'subversion',
|
||||
'ovmf'])
|
||||
}
|
||||
self.blacklist = {
|
||||
'i586': set([
|
||||
'belle-sip',
|
||||
'release-notes-openSUSE',
|
||||
'openSUSE-EULAs', # translate-toolkit
|
||||
'skelcd-openSUSE',
|
||||
'plasma5-workspace',
|
||||
'patterns-base',
|
||||
'patterns-fonts',
|
||||
'patterns-rpm-macros',
|
||||
'patterns-yast',
|
||||
'000release-packages'])
|
||||
'i586': set([
|
||||
'belle-sip',
|
||||
'release-notes-openSUSE',
|
||||
'openSUSE-EULAs', # translate-toolkit
|
||||
'skelcd-openSUSE',
|
||||
'plasma5-workspace',
|
||||
'patterns-base',
|
||||
'patterns-fonts',
|
||||
'patterns-rpm-macros',
|
||||
'patterns-yast',
|
||||
'000release-packages'])
|
||||
}
|
||||
|
||||
def get_filelist(self, project, package, expand = False):
|
||||
|
@ -172,11 +172,11 @@ def main(args):
|
||||
fullname = Person[userid][1]
|
||||
subject = '%s - %s - Build fail notification' % (project, package)
|
||||
text = MAIL_TEMPLATES[Reminded[package].remindCount - 1] % {
|
||||
'recipient': fullname,
|
||||
'sender': sender,
|
||||
'project': project,
|
||||
'package': package,
|
||||
'date': time.ctime(Reminded[package].firstfail)
|
||||
'recipient': fullname,
|
||||
'sender': sender,
|
||||
'project': project,
|
||||
'package': package,
|
||||
'date': time.ctime(Reminded[package].firstfail)
|
||||
}
|
||||
SendMail(logger, project, sender, to, fullname, subject, text)
|
||||
elif Reminded[package].remindCount == 4:
|
||||
|
@ -128,24 +128,24 @@ class FccSubmitter(object):
|
||||
self.apiurl = osc.conf.config['apiurl']
|
||||
self.debug = osc.conf.config['debug']
|
||||
self.sle_base_prjs = [
|
||||
'SUSE:SLE-15-SP2:GA',
|
||||
'SUSE:SLE-15-SP1:Update',
|
||||
'SUSE:SLE-15-SP1:GA',
|
||||
'SUSE:SLE-15:Update',
|
||||
'SUSE:SLE-15:GA',
|
||||
'SUSE:SLE-12-SP4:Update',
|
||||
'SUSE:SLE-12-SP4:GA',
|
||||
'SUSE:SLE-12-SP3:Update',
|
||||
'SUSE:SLE-12-SP3:GA',
|
||||
'SUSE:SLE-12-SP2:Update',
|
||||
'SUSE:SLE-12-SP2:GA',
|
||||
'SUSE:SLE-12-SP1:Update',
|
||||
'SUSE:SLE-12-SP1:GA',
|
||||
'SUSE:SLE-12:Update',
|
||||
'SUSE:SLE-12:GA']
|
||||
'SUSE:SLE-15-SP2:GA',
|
||||
'SUSE:SLE-15-SP1:Update',
|
||||
'SUSE:SLE-15-SP1:GA',
|
||||
'SUSE:SLE-15:Update',
|
||||
'SUSE:SLE-15:GA',
|
||||
'SUSE:SLE-12-SP4:Update',
|
||||
'SUSE:SLE-12-SP4:GA',
|
||||
'SUSE:SLE-12-SP3:Update',
|
||||
'SUSE:SLE-12-SP3:GA',
|
||||
'SUSE:SLE-12-SP2:Update',
|
||||
'SUSE:SLE-12-SP2:GA',
|
||||
'SUSE:SLE-12-SP1:Update',
|
||||
'SUSE:SLE-12-SP1:GA',
|
||||
'SUSE:SLE-12:Update',
|
||||
'SUSE:SLE-12:GA']
|
||||
# the skip list against devel project
|
||||
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$"
|
||||
self.except_pkgs_list = []
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user