From a33c299fd77d8b17d680d30a60fd4ea86ff06f05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Thu, 13 Jun 2019 18:38:49 +0200 Subject: [PATCH] :wrench: Add format-imports script --- scripts/format-imports.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/format-imports.sh diff --git a/scripts/format-imports.sh b/scripts/format-imports.sh new file mode 100755 index 000000000..cfa66bbd4 --- /dev/null +++ b/scripts/format-imports.sh @@ -0,0 +1,6 @@ +#!/bin/sh -e +set -x + +# Sort imports one per line, so autoflake can remove unused imports +isort --recursive --force-single-line-imports --thirdparty fastapi --apply fastapi tests docs/src +sh ./scripts/format.sh