Skip to content

Commit

Permalink
Disable fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dboreham committed Nov 1, 2024
1 parent b10ce2b commit abf9657
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- ci-test
- add-basic-ci

env:
ENABLE_RUSTFMT: False

jobs:
lint-checks:
name: Rust code checks
Expand All @@ -32,8 +35,14 @@ jobs:
with:
toolchain: stable
components: clippy
- name: Print installed Rust toolchains
run: rustup toolchain list
- name: Run cargo fmt
if: env.ENABLE_RUSTFMT == 'True'
# Note the hacky +nightly below
run: cargo +nightly fmt --all -- --check
- name: Run cargo fmt
if: False == env.ENABLE_RUSTFMT == 'True'
run: echo "cargo fmt skipped due to project code not complying with current format rules"
- name: Run cargo clippy
run: cargo clippy --workspace --tests -- -D warnings

0 comments on commit abf9657

Please sign in to comment.