Skip to content

Commit

Permalink
Add JSON schema generation (#2005)
Browse files Browse the repository at this point in the history
* Add JSON schema generation for pyproject.toml

* Generate maturin JSON schema

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add JSON schema generation as a hidden CLI command

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
JonathanPlasse and pre-commit-ci[bot] authored Mar 25, 2024
1 parent 5b537d8 commit f9d6616
Show file tree
Hide file tree
Showing 8 changed files with 524 additions and 0 deletions.
42 changes: 42 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ keyring = { version = "2.3.2", default-features = false, features = [
], optional = true }
wild = { version = "2.1.0", optional = true }

# JSON schema
schemars = { version = "0.8.16", optional = true }
pretty_assertions = { version = "1.3.0", optional = true }

[dev-dependencies]
expect-test = "1.4.1"
indoc = "2.0.3"
Expand Down Expand Up @@ -158,6 +162,8 @@ upload = [
"dep:dirs",
]

schemars = ["dep:schemars", "dep:pretty_assertions"]

# keyring doesn't support *BSD so it's not enabled in `full` by default
password-storage = ["upload", "keyring"]

Expand Down
Loading

0 comments on commit f9d6616

Please sign in to comment.