Commit 9757b324 authored by Jakob Lerch's avatar Jakob Lerch
Browse files

style(parsing): format

parent 7de77d33
Pipeline #2972 failed with stages
in 32 seconds
......@@ -110,8 +110,7 @@ re_end_time = re.compile(
def get_end_time(document: mistletoe.Document) -> Optional[dt.time]:
renderer = mistletoe.BaseRenderer()
headings = flatten(
document, (DokuWikiHeading, mistletoe.block_token.Heading))
headings = flatten(document, (DokuWikiHeading, mistletoe.block_token.Heading))
for heading in headings:
title = "".join(
......@@ -172,8 +171,7 @@ def get_attendees(document: mistletoe.Document) -> Iterable[Attendee]:
if group:
attendees = " ".join(
map(renderer.render, flatten(
span, mistletoe.span_token.RawText))
map(renderer.render, flatten(span, mistletoe.span_token.RawText))
)
yield from parse_attendees(attendees, group=group)
continue
......
......@@ -12,10 +12,8 @@ from ..meetings.ttp import TTP
def load_ttp(path: str):
"""loads protocol from file and parses it
"""
protocol = Path(__file__).parent.joinpath(
path).read_text()
"""loads protocol from file and parses it"""
protocol = Path(__file__).parent.joinpath(path).read_text()
return TTP.parse(protocol)
......@@ -72,8 +70,7 @@ def test_end_time():
def test_custom():
protocol = Path(__file__).parent.joinpath(
"example_protocol.md").read_text()
protocol = Path(__file__).parent.joinpath("example_protocol.md").read_text()
ttp = TTP.parse(protocol, date.today())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment