diff --git a/.flake8 b/.flake8 index f4b4f70c..0c639743 100644 --- a/.flake8 +++ b/.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 diff --git a/ReviewBot.py b/ReviewBot.py index 10d6806c..90a5d120 100644 --- a/ReviewBot.py +++ b/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 diff --git a/biarchtool.py b/biarchtool.py index ee19ec5f..499b8bec 100755 --- a/biarchtool.py +++ b/biarchtool.py @@ -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): diff --git a/build-fail-reminder.py b/build-fail-reminder.py index 1098622a..9788b05b 100755 --- a/build-fail-reminder.py +++ b/build-fail-reminder.py @@ -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: diff --git a/fcc_submitter.py b/fcc_submitter.py index b8447683..ab7c6bd1 100755 --- a/fcc_submitter.py +++ b/fcc_submitter.py @@ -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 = []