Closed njzjz closed 4 months ago
[!WARNING]
Rate limit exceeded
@njzjz has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 46 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 22a98faf08a9fb866c9949fe05f90378bcfe9fe4 and b376370750fd9e1dffcd7b47b81c3245ea21ad46.
The recent updates enhance the deepmd
package by introducing the ability to generate JSON schema documentation. This is facilitated through the new gen_json_schema
function and the updated doc_train_input
function, which now supports "json_schema" as an output type. Additionally, the main_parser
function in deepmd/main.py
has been updated to recognize this new output type. The documentation and dependencies have also been adjusted accordingly, with new tests ensuring the functionality works as expected.
Files/Paths | Change Summary |
---|---|
deepmd/entrypoints/doc.py |
Added gen_json_schema import and updated doc_train_input to handle "json_schema" output type. |
deepmd/main.py |
Updated --out-type argument choices in main_parser to include "json_schema". |
deepmd/utils/argcheck.py |
Added gen_json_schema function and updated normalize() function. |
doc/train/train-input.rst |
Added instructions for using JSON schema with VS Code. |
pyproject.toml |
Updated dargs dependency version constraint to >= 0.4.6 . |
source/tests/common/test_doc_train_input.py |
Added unit tests for doc_train_input function covering different output types. |
sequenceDiagram
participant User
participant CLI as deepmd CLI
participant DocModule as deepmd.entrypoints.doc
participant Utils as deepmd.utils.argcheck
User->>CLI: Run command with --out-type json_schema
CLI->>DocModule: Call doc_train_input with out_type=json_schema
DocModule->>Utils: Call gen_json_schema
Utils-->>DocModule: Return JSON schema
DocModule-->>CLI: Output JSON schema
CLI-->>User: Display JSON schema
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 82.67%. Comparing base (
f23c77e
) to head (b376370
). Report is 118 commits behind head on devel.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Doc:
Validation of type:
Validation of required keys:
Auto-completion:
Summary by CodeRabbit
New Features
--out-type
argument choices to include "json_schema".Documentation
Tests
doc_train_input
function to ensure proper handling of different output types.Chores
dargs
dependency to>= 0.4.6
.