Skip to content

Commit

Permalink
Merge pull request #382 from adamtheturtle/pad-groups
Browse files Browse the repository at this point in the history
Bump sybil-extras
  • Loading branch information
adamtheturtle authored Feb 27, 2025
2 parents 647de0d + f71660a commit 6cfc38a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies = [
# Pin this dependency as we expect:
# * It might have breaking changes
# * It is not a direct dependency of the user
"sybil-extras==2025.2.27",
"sybil-extras==2025.2.27.1",
]
optional-dependencies.dev = [
"actionlint-py==1.7.7.23",
Expand Down Expand Up @@ -432,6 +432,7 @@ ignore_names = [
# Ignore Protocol method arguments
# see https://github.com/jendrikseipp/vulture/issues/309
"directive",
"pad_groups",
]

exclude = [
Expand Down
1 change: 1 addition & 0 deletions src/doccmd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ def _run_args_against_docs(
markup_language.group_parser_cls(
directive=group_directive,
evaluator=group_evaluator,
pad_groups=True,
)
for group_directive in group_directives
]
Expand Down
8 changes: 7 additions & 1 deletion src/doccmd/_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ class _GroupedCodeBlockParser(Protocol):
A parser for grouping code blocks.
"""

def __init__(self, directive: str, evaluator: Evaluator) -> None:
def __init__(
self,
*,
directive: str,
evaluator: Evaluator,
pad_groups: bool,
) -> None:
"""
Construct a grouped code block parser.
"""
Expand Down

0 comments on commit 6cfc38a

Please sign in to comment.