Skip to content

Commit

Permalink
Fix complaints from Prospector
Browse files Browse the repository at this point in the history
Fix complaints from Prospector

Signed-off-by: Marc-Etienne Vargenau <[email protected]>
  • Loading branch information
vargenau committed Dec 7, 2022
1 parent 38f20a6 commit 3e7ee23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ci/test_files_touched.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
for change in changes:
for check, _ in test_suite.items():
if check.match(change):
alltests.extend(test_suite[check])
alltests.extend(_)

# Remove duplicate tests
tests = list(set(alltests))
Expand Down
2 changes: 1 addition & 1 deletion tern/classes/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def get_option_argument(self, option):

def is_set(self):
'''Check if any flags are set'''
return not(self.flags == 0b000)
return not (self.flags == 0b000)

def set_install(self):
'''Set install flag'''
Expand Down
4 changes: 2 additions & 2 deletions tern/formats/spdx/spdxjson/package_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_source_package_dict(package, template):
'licenseDeclared': spdx_common.get_package_license_declared(
mapping['PackageLicenseDeclared']),
'copyrightText': mapping['PackageCopyrightText'] if
mapping['PackageCopyrightText'] else'NONE',
mapping['PackageCopyrightText'] else 'NONE',
'comment': json_formats.source_package_comment
}

Expand All @@ -67,7 +67,7 @@ def get_package_dict(package, template):
'licenseDeclared': spdx_common.get_package_license_declared(
mapping['PackageLicenseDeclared']),
'copyrightText': mapping['PackageCopyrightText'] if
mapping['PackageCopyrightText'] else'NONE',
mapping['PackageCopyrightText'] else 'NONE',
'comment': get_package_comment(package)
}

Expand Down

0 comments on commit 3e7ee23

Please sign in to comment.