sudo apt-get install python3-pip
sudo pip3 install virtualenv
#!/bin/sh | |
# blacken the staged files | |
for file in $(git diff --cached --name-only | grep -E '\.(py)$') | |
do | |
black "$file" | |
$(git add "$file") | |
done | |
for file in $(git diff --cached --name-only | grep -E '\.(py)$') |