From 083f611791a5ad5fe565736c9e196b6e3ce0ce08 Mon Sep 17 00:00:00 2001 From: Pavel Nikonorov <4646953+pavelnikonorov@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:54:54 +0400 Subject: [PATCH] rustfmt.toml: ignore code formatting checks of the autogenerated models --- .github/workflows/ci.yml | 6 +++++- rustfmt.toml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 rustfmt.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17d6406..b5336e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,4 +109,8 @@ jobs: - name: Format run: | . $HOME/.cargo/env - cargo fmt \ No newline at end of file + # rustup install nightly – fails for some reason + # rustup default nightly + cargo fmt -- lib/serviceinfo/models # workaround to fix autogenerated code formatting + cargo fmt -- lib/tes/models + cargo fmt -- --check # --config-path ./rustfmt.toml \ No newline at end of file diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..62437b6 --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1,4 @@ +ignore = [ + "lib/serviceinfo/models", + "lib/tes/models", +] \ No newline at end of file