aboutsummaryrefslogtreecommitdiff
path: root/.dev-suite/hooked/pre-commit.py
blob: 5ddbc422d1bba52f19b3d6cc6e21428b0aa078e3 (plain)
1
2
3
4
5
6
7
#!/usr/bin/env python3
import subprocess

subprocess.run("cargo build --all", shell=True, check=True)
subprocess.run("cargo test --all -- --test-threads=1", shell=True, check=True)
subprocess.run("rustup run nightly cargo fmt --all -- --check", shell=True, check=True)
subprocess.run("cargo clippy --all --all-targets -- -W clippy::pedantic", shell=True, check=True)