~janbaudisch/photoprintit-tools

photoprintit-tools/.builds/lint.yml -rw-r--r-- 502 bytes
4181b0d7Jan Baudisch move to sourcehut 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
image: archlinux
package:
  - curl
sources:
  - https://git.sr.ht/~janbaudisch/photoprintit-tools
tasks:
  - setup: |
      curl -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
      . $HOME/.cargo/env
      rustup component add rustfmt
      rustup component add clippy
  - format: |
      . $HOME/.cargo/env
      cd photoprintit-tools
      cargo fmt --all -- --check
  - lint: |
      . $HOME/.cargo/env
      cd photoprintit-tools
      cargo clippy --all -- --deny clippy::all