Skip to content

Commit

Permalink
Fix PEP8 line length.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Apr 22, 2024
1 parent 77e1773 commit cdc9751
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wxflow/jinja.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def get_set_env(self, loader: jinja2.BaseLoader, filters: Dict[str, callable] =
env.filters["to_f90bool"] = lambda bool: ".true." if bool else ".false."
env.filters['getenv'] = lambda name, default='UNDEFINED': os.environ.get(name, default)
env.filters["relpath"] = lambda pathname, start=os.curdir: os.path.relpath(pathname, start)
env.filters["add_to_datetime"] = lambda dt, delta: add_to_datetime(dt, delta) if not (isinstance(dt, SilentUndefined) or isinstance(delta, SilentUndefined)) else dt
env.filters["add_to_datetime"] = (lambda dt, delta: add_to_datetime(dt, delta)
if not (isinstance(dt, SilentUndefined) or isinstance(delta, SilentUndefined)) else dt)
env.filters["to_timedelta"] = lambda delta_str: to_timedelta(delta_str) if not isinstance(delta_str, SilentUndefined) else delta_str

# Add any additional filters
Expand Down

0 comments on commit cdc9751

Please sign in to comment.