Add a script to reformat the project

This commit is contained in:
Kirill Bulatov
2022-10-08 12:21:17 +03:00
committed by Kirill Bulatov
parent 3be3bb7730
commit 3e35f10adc

11
scripts/reformat Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euox pipefail
# Runs all formatting tools to ensure the project is up to date
echo 'Reformatting Rust code'
cargo fmt
echo 'Reformatting Python code'
poetry run isort test_runner
poetry run flake8 test_runner
poetry run black test_runner