diff --git a/scripts/.sourcery.yaml b/scripts/.sourcery.yaml index 059da1da65c69efda551da930efc672b7855da72..0b514de6859f05c00b105053eba1ca8f2827b107 100644 --- a/scripts/.sourcery.yaml +++ b/scripts/.sourcery.yaml @@ -27,7 +27,6 @@ rule_settings: - for-append-to-extend - raise-specific-error - simplify-len-comparison - - de-morgan - use-named-expression - use-next diff --git a/scripts/analyze_job_logs.py b/scripts/analyze_job_logs.py index cf4c5f9cd47994bc6ef4bfdf78cb6a36de4e546f..4872146dc7aa3d030b3e8622267f0894ec4e46f9 100755 --- a/scripts/analyze_job_logs.py +++ b/scripts/analyze_job_logs.py @@ -94,7 +94,7 @@ def main(args): for job in job_it: if options.filter_status is not None and job.status != options.filter_status: continue - if options.filter_tag is not None and not options.filter_tag in job.tag_list: + if options.filter_tag is not None and options.filter_tag not in job.tag_list: continue log = bytes.decode(job.trace()) if options.pattern in log: diff --git a/scripts/delete_job_artifacts.py b/scripts/delete_job_artifacts.py index 4c160f30323b9d907e7020545c179d1dab3de24a..3aa7dc67bde1cca7f6e68c59da589d107bcf79ec 100755 --- a/scripts/delete_job_artifacts.py +++ b/scripts/delete_job_artifacts.py @@ -87,7 +87,7 @@ def main(args): continue if options.filter_status is not None and job.status != options.filter_status: continue - if options.filter_tag is not None and not options.filter_tag in job.tag_list: + if options.filter_tag is not None and options.filter_tag not in job.tag_list: continue job.delete_artifacts() logging.debug( diff --git a/scripts/lava_credentials.py b/scripts/lava_credentials.py index 1be13ddff68e8a4e27a1145e58640ad45affe1d8..bd0f1d1b4f7681853ef0639adab35faf05de6bc1 100755 --- a/scripts/lava_credentials.py +++ b/scripts/lava_credentials.py @@ -59,7 +59,7 @@ def get_lava_credentials(host=None): if new_data: valid = {"yes": True, "ye": True, "y": True, "": True, "no": False, "n": False} choice = None - while not choice in valid: + while choice not in valid: sys.stdout.write( "Do you want to save these credentials in '%s'? " "[Y/n] " % configfile )