-
Notifications
You must be signed in to change notification settings - Fork 192
chore: add mdformat and prettier for yaml #1865
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
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 |
|---|---|---|
|
|
@@ -39,5 +39,25 @@ repos: | |
| hooks: | ||
| - id: velin | ||
| args: ["--write"] | ||
| # markdown | ||
| - repo: https://github.com/hukkin/mdformat | ||
| rev: 1.0.0 | ||
| hooks: | ||
| - id: mdformat | ||
| additional_dependencies: | ||
| # - mdformat-myst==0.3.0 | ||
| # See https://github.com/executablebooks/mdformat-myst/issues/13 | ||
| - "git+https://github.com/njzjz-bothub/mdformat-myst@d9c414e#egg=mdformat-myst" | ||
| - mdformat-ruff==0.1.3 | ||
| - mdformat-web==0.2.0 | ||
| - mdformat-config==0.2.1 | ||
| - mdformat-beautysh==1.0.0 | ||
| - mdformat-gfm-alerts==2.0.0 | ||
| # yaml | ||
| - repo: https://github.com/pre-commit/mirrors-prettier | ||
| rev: v4.0.0-alpha.8 | ||
| hooks: | ||
| - id: prettier | ||
| types_or: [yaml] | ||
|
Comment on lines
+57
to
+61
Contributor
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# List recent releases to confirm latest stable vs alpha.
gh release list -R pre-commit/mirrors-prettier --limit 10Repository: deepmodeling/dpgen Length of output: 243 🌐 Web query:
💡 Result:
Practical choice: use v3.8.1 unless you specifically need to test v4 behavior; if you do, prefer the latest v4 alpha rather than alpha.8. [1][3] Sources: [1] Snyk (npm prettier versions list), [2] Libraries.io (prettier version timeline incl. 4.0.0-alpha.8), [3] ReleaseAlert (prettier release timeline incl. 4.0.0-alpha.13). Pin Prettier to the latest stable release (v3.8.1).
🤖 Prompt for AI Agents |
||
| ci: | ||
| autoupdate_branch: devel | ||
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.
Fix YAML indentation so new repos are top‑level list items.
The markdown/yaml hooks are indented under the previous repo mapping, which makes the YAML invalid (matches the YAMLlint error) and will break
pre-commitparsing. Align them with the other top‑levelreposentries.✅ Proposed fix
📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.38.0)
[error] 43-43: syntax error: expected , but found ''
(syntax)
🤖 Prompt for AI Agents