diff --git a/.rusty-hook.toml b/.rusty-hook.toml index be6c09c1..17a2fb9a 100644 --- a/.rusty-hook.toml +++ b/.rusty-hook.toml @@ -1,5 +1,5 @@ [hooks] -post-commit = "just all" +pre-commit = "just all" [logging] verbose = true diff --git a/justfile b/justfile index 3acd01b8..d94fc948 100644 --- a/justfile +++ b/justfile @@ -1,6 +1,6 @@ test_addrs := env_var_or_default('TEST_ADDR', `jq -r '.[].address' ci/test_accounts.json | tr '\n' ' '`) set export -check: +lint: cargo fmt --all && cargo clippy -- -D warnings test: #!/bin/bash @@ -54,7 +54,7 @@ download-deps: wget https://github.com/CosmWasm/cw-plus/releases/latest/download/cw20_base.wasm -O artifacts/cw20_base.wasm # TODO?: test dao-contracts -all: build test check schema gen optimize checksum +all: build test lint schema gen optimize checksum #!/usr/bin/env bash gas-benchmark: juno-local download-deps optimize