diff options
Diffstat (limited to 'check')
-rwxr-xr-x | check | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -3,12 +3,17 @@ set -eu verbose=false +offline= if [ "$#" -gt 0 ]; then case "$1" in verbose | -v | --verbose) verbose=true shift ;; + --offline) + offline=--offline + shift + ;; esac fi @@ -22,10 +27,10 @@ if $verbose; then hideok= fi -$hideok cargo check --all-targets -cargo clippy -q -$hideok cargo build --all-targets -$hideok cargo test +$hideok cargo check --all-targets $offline +cargo clippy -q $offline +$hideok cargo build --all-targets $offline +$hideok cargo test $offline $hideok cargo fmt -- --check $hideok find . -type f -name '*.py' ! -name test.py -exec black --check '{}' + |