Skip to content

Commit

Permalink
testing other changes to pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
rebekahrudd committed Dec 5, 2024
1 parent 82a1cd4 commit d3fff30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions gator/checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ def load_check(checker_source, check_file):
"""Load the specified check from the source."""
if is_internal_check(check_file):
return importlib.import_module(checks.__name__ + "." + check_file)
else:
return checker_source.load_plugin(check_file)
return checker_source.load_plugin(check_file)


def get_source(checker_paths=[]):
Expand Down
2 changes: 1 addition & 1 deletion gator/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def set_result(description, outcome, diagnostic):
def get_result():
"""Return the result dictionary."""
# pylint: disable=global-statement
global result
# global result
return result


Expand Down
2 changes: 1 addition & 1 deletion gator/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def get_file_diagnostic_deep_exact(file_count_dictionary, value):
if file_details == {}:
file_details = get_first_not_equal_value(file_count_dictionary, value)
# there is some type of exact match in the data set, so extract and return it
if file_details != {} and file_details != (0, 0):
if file_details not in {} and file_details not in (0, 0):
file_name = file_details[0]
file_count = file_details[1][1]
file_name_phrase = (
Expand Down

0 comments on commit d3fff30

Please sign in to comment.