-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Use uv workspaces instead of pip #12622
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[project] | ||
name = "ruff-docs" | ||
version = "0.0.0" | ||
dependencies = [ | ||
"PyYAML>=6.0.1", | ||
"mkdocs>=1.5.0", | ||
"mdformat>=0.7.17", | ||
"mdformat-mkdocs>=2.0.4", | ||
"mdformat-admon>=2.0.3", | ||
"mkdocs-material>=9.1.18", | ||
"mkdocs-redirects>=1.2.1", | ||
] | ||
requires-python = ">=3.8" | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/ruff_docs"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
PyYAML==6.0.1 | ||
black==23.10.0 | ||
mkdocs==1.5.0 | ||
mkdocs-material @ git+ssh://git@github.com/astral-sh/mkdocs-material-insiders.git@38c0b8187325c3bab386b666daf3518ac036f2f4 | ||
mkdocs-redirects==1.2.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need to keep it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use a custom version of mkdocs but external contributors don't have access to that repository. I don't know if there's a better way to support this? |
||
mdformat==0.7.17 | ||
mdformat-mkdocs==2.0.4 | ||
mdformat-admon==2.0.2 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,7 +161,7 @@ def main() -> None: | |
# Format rules docs | ||
add_no_escape_text_plugin() | ||
for rule_doc in Path("docs/rules").glob("*.md"): | ||
mdformat.file(rule_doc, extensions=["mkdocs", "admonition", "no-escape-text"]) | ||
mdformat.file(rule_doc, extensions=["mkdocs", "admon", "no-escape-text"]) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was a breaking change in |
||
|
||
with Path("mkdocs.template.yml").open(encoding="utf8") as fp: | ||
config = yaml.safe_load(fp) | ||
|
Large diffs are not rendered by default.
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.
This seems off... Isn't that mismatched now?