Skip to content
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

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Conversation

jsirois
Copy link
Contributor

@jsirois jsirois commented Jul 3, 2024

Also update dependencies.

Work towards #64.

Also update dependencies.

Work towards a-scie#64.
link_tables: "yes"
recurse_tables: "yes"
---
:toctree_maxdepth: 2
Copy link
Contributor Author

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,
Copy link
Contributor Author

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)
Copy link
Contributor Author

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 = {
Copy link
Contributor Author

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.

@jsirois jsirois merged commit 8dd2416 into a-scie:main Jul 4, 2024
7 checks passed
@jsirois jsirois deleted the v0.4.0/attestations branch July 4, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants