File: fix

package info (click to toggle)
pysequoia 0.1.29-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 652 kB
  • sloc: sh: 22; python: 20; makefile: 11
file content (14 lines) | stat: -rwxr-xr-x 288 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

set -euxo pipefail

if ! git diff-files --quiet ; then
    echo "Working tree has changes. Please stage them: git add ."
    exit 1
fi

codespell --write-changes
cargo clippy --fix --allow-staged

# fmt must be last as clippy's changes may break formatting
cargo fmt