diff --git a/dev.sh b/dev.sh
index 209d48ab4e9d72b4d77f729189c97345ac904e9c..70667f4629f7a96662180f21d62633c0720d692b 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