Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Oct 26, 2023
1 parent 18fd7ad commit 6904a05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bikeshed/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
macroStartChar = "\uebbb"
macroEndChar = "\uebbc"
incrementLineCountChar = "\uebbd"
bsComment = "<!--\uebbe-->"
bsComment = "<!--\uebbe-->"
6 changes: 2 additions & 4 deletions bikeshed/h/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ def parseNode(
if s[start] == "&":
ch, i = parseCharRef(s, start)
if ch is not Failure:
node = Text(text=f"&#{ord(ch)};",
line=s.line(start),
endLine=s.line(i-1))
node = Text(text=f"&#{ord(ch)};", line=s.line(start), endLine=s.line(i - 1))
return Result(node, i)

if s[start] == "<":
Expand Down Expand Up @@ -274,7 +272,7 @@ def initialDocumentParse(text: str, config: ParseConfig, startLine: int = 1) ->
return list(nodesFromHtml(text, config, startLine=startLine))


def strFromNodes(nodes: t.Iterable[ParserNode], withIlcc=False) -> str:
def strFromNodes(nodes: t.Iterable[ParserNode], withIlcc: bool = False) -> str:
strs = []
ilcc = constants.incrementLineCountChar
for node in nodes:
Expand Down
1 change: 0 additions & 1 deletion bikeshed/markdown/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def inlineElementStart(line: str) -> bool:
rawElements = "|".join(re.escape(x) for x in opaqueElements)

for i, line in enumerate(lines):

# Skip lines that are entirely a censored comment.
if line.text.strip() == constants.bsComment:
continue
Expand Down

0 comments on commit 6904a05

Please sign in to comment.