Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ updates:
groups:
github-actions:
patterns: ["*"]
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
groups:
python:
patterns: ["*"]
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
hooks:
- id: pretty-format-toml
args: [--autofix, --indent, "4", --no-sort]
exclude: ^Cargo\.lock$
exclude: ^(Cargo|uv)\.lock$
- id: pretty-format-rust
args: [--autofix]
- repo: https://github.com/doublify/pre-commit-rust
Expand Down Expand Up @@ -74,3 +74,7 @@ repos:
rev: 2.1.0
hooks:
- id: validate-cff
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.15
hooks:
- id: uv-lock
9 changes: 1 addition & 8 deletions docs/file_formats/generate_docs.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "jinja2",
# "pyyaml",
# "table2md",
# ]
# ///
#
# A script to generate markdown documentation from table schemas. If invoked without any arguments,
# it will generate all file format documentation. Alternatively, you can specify one or more type
Expand Down Expand Up @@ -90,7 +83,7 @@ def main(options: Iterable[str]) -> None:
except KeyError:
print(f'Unknown option "{option}"')
else:
(filename, txt) = fun(env)
filename, txt = fun(env)
Comment on lines -93 to +86
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, I'd clearly been looking at Rust code for too much time when I wrote that 😆

path = FILE_FORMAT_DOCS_DIR / filename
print(f"Writing {path}")
path.write_text(txt, encoding="utf-8")
Expand Down
5 changes: 0 additions & 5 deletions docs/generate_example_docs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "jinja2",
# ]
# ///
#
# A script to generate documentation for the different examples from README.txt files.

Expand Down
5 changes: 0 additions & 5 deletions docs/generate_versions_docs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
#!/usr/bin/env python3
# /// script
# dependencies = [
# "jinja2",
# ]
# ///
#
# A script to generate the versions.md file, listing links to old versions of documentation.

Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[project]
name = "muse2-docs"
version = "2.1.0"
description = "Define dependencies for building MUSE2 docs"
requires-python = ">=3.12"
dependencies = [
"jinja2>=3.1.6",
"pyyaml>=6.0.3",
"table2md>=1.1.0"
]
150 changes: 150 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

Loading