-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prepare 0.4.0 with attestation. #65
Conversation
Also update dependencies. Work towards a-scie#64.
link_tables: "yes" | ||
recurse_tables: "yes" | ||
--- | ||
:toctree_maxdepth: 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Myst update warns about the deprecated directive option syntax and comment syntax (and our doc build treats warnings as errors); so this updates to the approved syntax for both options directives and comments.
@@ -43,7 +43,7 @@ def run_pex(session: Session, script, *args, silent=False, **env) -> Any | None: | |||
*args, | |||
env={"PEX_SCRIPT": script, **env}, | |||
silent=silent, | |||
stderr=subprocess.DEVNULL if silent else None, | |||
stderr=subprocess.DEVNULL if silent else subprocess.STDOUT, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better type-checking flagged this.
@@ -60,7 +61,7 @@ class DirectiveSpec: | |||
name: str | |||
args: tuple[str, ...] = () | |||
options: Mapping[str, str] = FrozenDict() | |||
content: str = "" | |||
content: StringList = field(default_factory=StringList) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated docutils necessitated this change.
@@ -133,7 +134,7 @@ def register( | |||
|
|||
class Synthesized(Directive): | |||
has_content = getattr(doc_gen_directive, "has_content", False) | |||
option_spec: Mapping[str, Callable[[str], Any]] = { | |||
option_spec = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better type-checking allowed this manual type ascription to be dropped.
Also update dependencies.
Work towards #64.