@@ -36,7 +36,7 @@ def link(url, name):
3636
3737def nested_dict_to_namespaces (dic ):
3838 """Code for recursively converting dictionaries of dictionaries
39- into SimpleNamespaces instead.
39+ into SimpleNamespaces instead.
4040 """
4141
4242 def recurse (dic ):
@@ -90,7 +90,6 @@ def unique(sequence):
9090 f"https://raw.githubusercontent.com/pycontribs/meta/master/{ config_file } " ,
9191 ]
9292 ):
93-
9493 try :
9594 if re .match (r"https?://" , location ):
9695 stream = urllib .request .urlopen (location )
@@ -113,7 +112,6 @@ def unique(sequence):
113112
114113
115114class Tender :
116-
117115 # pylint: disable=too-many-instance-attributes
118116
119117 def __init__ (self , cfg : Config ):
@@ -199,8 +197,10 @@ def do_pulls(self):
199197 )
200198 pr_labels = [p .name for p in pull .get_labels ()]
201199 if len (self .required_labels .intersection (pr_labels )) == 0 :
202- msg += "\n \t Should have at least one label out of {} but found: {}" .format (
203- ", " .join (self .required_labels ), ", " .join (pr_labels )
200+ msg += (
201+ "\n \t Should have at least one label out of {} but found: {}" .format (
202+ ", " .join (self .required_labels ), ", " .join (pr_labels )
203+ )
204204 )
205205 print (msg )
206206 cnt += 1
@@ -209,7 +209,6 @@ def do_pulls(self):
209209 pass
210210
211211 def do_labels (self ):
212-
213212 _logger .info ("Auditing repository labels" )
214213 _logger .debug (self .cfg .labels )
215214 existing_labels = [x .name for x in self .repo .get_labels ()]
@@ -265,17 +264,14 @@ def do_draft(self):
265264 )
266265
267266 for pull in self .repo .get_pulls (state = "closed" ):
268-
269267 if pull .merged :
270-
271268 _logger .debug ("Doing %s: %s" , pull .number , pull .title )
272269 # ignoring commits
273270 labels = {x .name for x in pull .labels }
274271 if not self .exclude_labels .isdisjoint (labels ):
275272 continue
276273
277274 if pull .merge_commit_sha in commits :
278-
279275 valid_labels = list (self .required_labels .intersection (labels ))
280276 if valid_labels :
281277 section = self .label_section_map [valid_labels [0 ]]
@@ -419,5 +415,4 @@ def do_labels(ctx):
419415
420416
421417if __name__ == "__main__" :
422-
423418 cli () # pylint: disable=no-value-for-parameter
0 commit comments