Skip to content

Commit

Permalink
style: apply ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
bdura committed Mar 30, 2024
1 parent d25e0f9 commit 3d94b63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

from persil import regex, regex_groupdict, string

parser_plain = regex(r"\d{2}") >> string("/") >> regex(r"\d{2}") >> string("/") >> regex(r"\d{4}")
parser_plain = (
regex(r"\d{2}") >> string("/") >> regex(r"\d{2}") >> string("/") >> regex(r"\d{4}")
)
parser_groups = regex_groupdict(r"(?P<day>\d\d)/(?P<month>\d\d)/(?P<year>\d\d\d\d)")

EXAMPLES = [
Expand Down
1 change: 1 addition & 0 deletions tests/test_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"TEST",
]


@pytest.mark.parametrize("message", EXAMPLES)
def test_string_parser(message: str):
parser.parse(message)

0 comments on commit 3d94b63

Please sign in to comment.