From 4d6da4fe22bf27d9f04cc74e5bf229910ea8df42 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Mon, 2 Sep 2019 16:44:48 +0200
Subject: [PATCH] Add autopep8 command to dev.sh.

---
 dev.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dev.sh b/dev.sh
index 209d48ab4..70667f462 100755
--- a/dev.sh
+++ b/dev.sh
@@ -29,6 +29,14 @@ case "$1" in
         	poetry run sh -c "cd $d; $manage_py makemessages --no-wrap -i static $locales"
         done
         ;;
+    "autopep8")
+        cd "$(dirname "$0")"
+        for d in biscuit/core apps/official/*/biscuit/apps/*; do
+        	echo; echo "Entering $d."
+        	poetry run sh -c "cd $d; autopep8 -i -r ."
+        done
+        ;;
+
     *)
 	;;
 esac
-- 
GitLab