-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run taplo and typos always via pixi (#4913)
### What * Fixes #4907 * Chips away on #4170 ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using newly built examples: [app.rerun.io](https://app.rerun.io/pr/4913/index.html) * Using examples from latest `main` build: [app.rerun.io](https://app.rerun.io/pr/4913/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [app.rerun.io](https://app.rerun.io/pr/4913/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG - [PR Build Summary](https://build.rerun.io/pr/4913) - [Docs preview](https://rerun.io/preview/efc4b733c65083d1bc5901edb024ea125164b8e3/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/efc4b733c65083d1bc5901edb024ea125164b8e3/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
- Loading branch information
Showing
8 changed files
with
24 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,9 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
tool: taplo-cli | ||
pixi-version: v0.6.0 | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
|
@@ -35,7 +34,7 @@ jobs: | |
run: | | ||
python3 scripts/ci/crates.py version --bump prerelease | ||
- run: taplo fmt | ||
- run: pixi run toml-fmt | ||
shell: bash | ||
|
||
- name: Get bumped version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,15 +206,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
tool: taplo-cli | ||
pixi-version: v0.6.0 | ||
|
||
- name: Taplo check | ||
- run: pixi run lint-taplo | ||
shell: bash | ||
run: | | ||
taplo fmt --check --diff | ||
|
||
misc-rerun-lints: | ||
name: Rerun lints | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,10 +88,9 @@ jobs: | |
run: | | ||
python3 -m pip install -r ./scripts/ci/requirements-crates.txt | ||
- name: Install taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
tool: taplo-cli | ||
pixi-version: v0.6.0 | ||
|
||
- name: Update crate versions | ||
id: versioning | ||
|
@@ -147,7 +146,7 @@ jobs: | |
run: | | ||
cmake -B build -S . | ||
- run: taplo fmt | ||
- run: pixi run toml-fmt | ||
shell: bash | ||
|
||
- name: Commit new version | ||
|
@@ -389,19 +388,18 @@ jobs: | |
run: | | ||
python3 -m pip install -r scripts/ci/requirements-crates.txt | ||
- name: Install taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: taplo-cli | ||
|
||
- name: Update version | ||
id: update-version | ||
shell: bash | ||
run: | | ||
python3 scripts/ci/crates.py version --bump auto | ||
echo "version=$(python3 scripts/ci/crates.py get-version)" >> "$GITHUB_OUTPUT" | ||
- run: taplo fmt | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.6.0 | ||
|
||
- run: pixi run toml-fmt | ||
shell: bash | ||
|
||
- name: Commit new version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -227,15 +227,14 @@ jobs: | |
with: | ||
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }} | ||
|
||
- name: Install taplo-cli | ||
uses: taiki-e/install-action@v2 | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
tool: taplo-cli | ||
pixi-version: v0.6.0 | ||
|
||
- name: Taplo check | ||
shell: bash | ||
run: | | ||
taplo fmt --check --diff | ||
pixi run lint-taplo | ||
# --------------------------------------------------------------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# https://github.com/tamasfe/taplo | ||
|
||
exclude = [".pixi/**", "build/**", "target/**", "venv/**"] | ||
|
||
[formatting] | ||
indent_string = " " |