topola/.woodpecker/pre-commit.yaml

15 lines
369 B
YAML

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]