From 3e35f10adca053afd6c786237cc06bc6f8db5050 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Sat, 8 Oct 2022 12:21:17 +0300 Subject: [PATCH] Add a script to reformat the project --- scripts/reformat | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/reformat diff --git a/scripts/reformat b/scripts/reformat new file mode 100755 index 0000000000..67140a705a --- /dev/null +++ b/scripts/reformat @@ -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