Skip to content

Commit

Permalink
Merge branch 'devel' into dependabot/pip/mypy-1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Jun 26, 2024
2 parents 2d43c33 + 5166f25 commit bafced4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ repos:
types: [python]

- repo: https://github.com/pycqa/pylint
rev: v3.2.3
rev: v3.2.4
hooks:
- id: pylint # Use pylintrc file in repository
name: Check for Linting error on Python files
Expand Down
4 changes: 1 addition & 3 deletions j2lint/linter/indenter/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _handle_middle_tag(node: Node, line_no: int) -> int:
self.check_indent_level(result, node)
return line_no

def _handle_end_tag(node: Node, line_no: int) -> int: # type: ignore
def _handle_end_tag(node: Node, line_no: int) -> int:
if f"end{jinja_node_stack[-1].tag}" == node.tag:
if jinja_node_stack[-1] != self:
return line_no
Expand All @@ -228,8 +228,6 @@ def _handle_end_tag(node: Node, line_no: int) -> int: # type: ignore
# End Tag not matching the begin tag - raise an error
message = f"Line {line_no} - Tag is out of order '{node.tag}'"
_append_error_to_result_and_raise(message)
# Never reached
return line_no

while line_no < len(lines):
line = lines[line_no]
Expand Down

0 comments on commit bafced4

Please sign in to comment.