Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Aug 25, 2021
1 parent dcfc96f commit f03592f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions report-modules-plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ def find_plugins(args, filectx):
try:
tmpl = filectx.templar.environment.parse(source=args)
except jinja2.exceptions.TemplateSyntaxError:
logging.warning(f"the string [{args}] could not be processed as a Jinja2 template at {filectx.filename}:{filectx.get_lineno(1)}")
logging.warning(
f"the string [{args}] could not be processed as a Jinja2 template "
f"at {filectx.filename}:{filectx.get_lineno(1)}"
)
return
node_types = (
jinja2.nodes.Call,
Expand All @@ -312,7 +315,9 @@ def find_plugins(args, filectx):
logging.debug(f"\tskipping getattr call {item}")
continue
else:
logging.warning(f"unknown item {item} at {filectx.filename}:{item.lineno}")
logging.warning(
f"unknown item {item} at {filectx.filename}:{item.lineno}"
)
continue
if isinstance(item, jinja2.nodes.Macro):
global jinja2_macros
Expand Down

0 comments on commit f03592f

Please sign in to comment.