File size: 449 Bytes
c456c14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# Move to the directory containing the directory that this file is in
cd "$( cd "$( dirname "${BASH_SOURCE[0]}/.." )" >/dev/null 2>&1 && pwd )" || exit

echo RUNNING BLACK
black . --exclude src --exclude external_projects
echo BLACK DONE
echo ""

echo RUNNING DOCFORMATTER
find . -name "*.py" | grep -v ^./src | grep -v ^./external_projects | grep -v used_configs | xargs docformatter --in-place -r
echo DOCFORMATTER DONE

echo ALL DONE