Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Jul 20, 2023
1 parent d7b9c80 commit f20268a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions databank/query.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
from os import PathLike
import re
from os import PathLike
from pathlib import Path


# queries are separated by two newlines
QUERY_SEPARATOR = "\n\n"

# pattern a query header must match
_HEADER_PATTERN = re.compile(r'/\*\s@name\s\w+\s\*/')
_HEADER_PATTERN = re.compile(r"/\*\s@name\s\w+\s\*/")


class InvalidQueryHeader(Exception):
...
Expand Down Expand Up @@ -61,7 +61,7 @@ def from_file(cls, filepath: PathLike):
queries[header["name"]] = "\n".join(_lines[1:]).strip()

return cls(queries)

def __repr__(self) -> str:
"""Get the string representation of this collection.
Expand Down

0 comments on commit f20268a

Please sign in to comment.