Skip to content

Commit

Permalink
refactor: address quality errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Jan 15, 2025
1 parent 0805578 commit b0c3aec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edx_lint/pylint/filters_docstring/filters_docstring_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _check_purpose_missing_or_badly_formatted(self, docstring):
"""
if not re.search(r"Purpose:\s*.*\n", docstring):
return self.DOCSTRING_MISSING_PURPOSE_OR_BADLY_FORMATTED
return
return None

def _check_filter_type_missing_or_incorrect(self, node, docstring):
"""
Expand All @@ -125,7 +125,7 @@ def _check_filter_type_missing_or_incorrect(self, node, docstring):
filter_type = node.locals["filter_type"][0].statement().value.value
if not re.search(r"Filter Type:\s*%s" % filter_type, docstring):
return self.DOCSTRING_MISSING_OR_INCORRECT_TYPE
return
return None

def _check_trigger_missing_or_badly_formatted(self, docstring):
"""
Expand All @@ -139,4 +139,4 @@ def _check_trigger_missing_or_badly_formatted(self, docstring):
re.MULTILINE,
):
return self.DOCSTRING_MISSING_TRIGGER_OR_BADLY_FORMATTED
return
return None

0 comments on commit b0c3aec

Please sign in to comment.