Skip to content

Commit

Permalink
update formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Jan 2, 2025
1 parent e316b37 commit 377a663
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 18 deletions.
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
version: 2

updates:
- package-ecosystem: cargo
directory: /
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: CI

on:
push:
branches:
- main
pull_request:

jobs:
check:
runs-on: ubuntu-latest
Expand All @@ -17,24 +15,20 @@ jobs:
remove-docker-images: true
remove-dotnet: true
remove-haskell: true

- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.event.pull_request.head.ref }}

- uses: DeterminateSystems/flake-checker-action@v9
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: Swatinem/rust-cache@v2

- run: nix develop -c cargo clippy --all-features --fix --no-deps
- run: nix develop -c nix run .#generate-readme
- run: nix fmt
- uses: EndBug/add-and-commit@v9
with:
message: "chore: lint"
default_author: github_actions

- run: nix develop -c cargo doc --all-features --no-deps
- run: nix develop -c cargo test --all-features
4 changes: 0 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
name: Deploy

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
environment:
Expand Down
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[workspace]
resolver = "2"
members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.0.13"
edition = "2021"
repository = "https://github.com/unavi-xyz/gltf_kun"
license = "MIT OR Apache-2.0"
repository = "https://github.com/unavi-xyz/gltf_kun"
version = "0.0.13"

[workspace.dependencies]
avian3d = "0.2.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/bevy_gltf_kun/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Bevy [gltf_kun](https://crates.io/crates/gltf_kun) plugin.

### Usage

Add [GltfKunPlugin] to your app:
Add \[GltfKunPlugin\] to your app:

```rust
use bevy::prelude::*;
Expand All @@ -27,7 +27,7 @@ Export scenes to glTF using [GltfExportEvent](export::gltf::GltfExportEvent).

The resulting [GltfExportResult](export::gltf::GltfExportResult) will contain a flexible
[GltfDocument](gltf_kun::graph::gltf::document::GltfDocument) that can be exported to various
file types. See [gltf_kun] for more information on how to do so.
file types. See \[gltf_kun\] for more information on how to do so.

```rust
use bevy::prelude::*;
Expand Down
4 changes: 4 additions & 0 deletions taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[formatting]
allowed_blank_lines = 1
reorder_arrays = true
reorder_keys = true
4 changes: 3 additions & 1 deletion treefmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
{
projectRootFile = "flake.nix";
programs = {
actionlint.enable = true;
mdformat.enable = true;
nixfmt.enable = true;
prettier.enable = true;
rustfmt.enable = true;
taplo.enable = true;
yamlfmt.enable = true;
};
}

0 comments on commit 377a663

Please sign in to comment.