diff --git a/.woodpecker/check_formatting.yaml b/.woodpecker/check_formatting.yaml new file mode 100644 index 0000000..e536518 --- /dev/null +++ b/.woodpecker/check_formatting.yaml @@ -0,0 +1,11 @@ +steps: + check_formatting: + image: rust + environment: + RUST_BACKTRACE: 1 + CARGO_TERM_COLOR: always + commands: + - rustup component add rustfmt + - cargo fmt --all -- --check + when: + event: [pull_request, push, tag] diff --git a/.woodpecker/pre-commit.yaml b/.woodpecker/pre-commit.yaml deleted file mode 100644 index 7a8eab9..0000000 --- a/.woodpecker/pre-commit.yaml +++ /dev/null @@ -1,14 +0,0 @@ -steps: - pre-commit: - image: rust - environment: - RUST_BACKTRACE: 1 - CARGO_TERM_COLOR: always - commands: - - apt-get -y update > /dev/null - - apt-get -y install pre-commit > /dev/null - - rustup default stable - - rustup component add rustfmt clippy - - pre-commit run --all-files - when: - event: [pull_request, push, tag]