Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
deno-version: v2.x
- name: Build release
run: cargo build --target wasm32-unknown-unknown --features wasm --release
- name: Generate config schema
run: 'deno run -A --minimum-dependency-age=0 jsr:@dprint/automation@0.14.3/tasks/publish-schema target/wasm32-unknown-unknown/release/dprint_plugin_ruff.wasm deployment/schema.json --extension py'
- name: Test
run: cargo test
- name: Get tag version
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const buildJob = job("build", {
uses: "Swatinem/rust-cache@v2",
with: { "save-if": "${{ github.ref == 'refs/heads/main' }}" },
},
// deno is needed by the "Lint workflow generation" step and, on a tag,
// by the "Pre-release" step
// deno is needed by the "Generate config schema" and "Lint workflow
// generation" steps and, on a tag, by the "Pre-release" step
{
uses: "denoland/setup-deno@v2",
with: { "deno-version": "v2.x" },
Expand All @@ -43,6 +43,15 @@ const buildJob = job("build", {
name: "Build release",
run: "cargo build --target wasm32-unknown-unknown --features wasm --release",
},
// adds the outputs of the code examples to the config schema, which also
// checks that the plugin accepts every property in it
{
name: "Generate config schema",
run: [
"deno run -A --minimum-dependency-age=0 jsr:@dprint/automation@0.14.3/tasks/publish-schema",
`target/wasm32-unknown-unknown/release/${cargoWasmName}.wasm deployment/schema.json --extension py`,
].join(" "),
},

{ name: "Test", run: "cargo test" },

Expand Down
187 changes: 102 additions & 85 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ wasm = ["serde_json", "dprint-core/wasm"]

[dependencies]
anyhow = "1.0.51"
dprint-core = { version = "0.75.0", default-features = false }
dprint-core = { version = "0.75.2", default-features = false }
get-size2 = "=0.10.3"
ruff_formatter = { git = "https://github.com/astral-sh/ruff", tag = "0.17.3" }
ruff_linter = { git = "https://github.com/astral-sh/ruff", tag = "0.17.3" }
Expand All @@ -41,7 +41,7 @@ uuid = { version = "1", features = ["v4", "rng-getrandom"] }
getrandom = "0.3"

[dev-dependencies]
dprint-development = "0.9.5"
dprint-development = "0.12.1"
pretty_assertions = "1.4.0"
serde_json = { version = "1.0" }

Expand Down
Loading
Loading