atst/script/format
2020-03-04 11:51:15 -05:00

14 lines
473 B
Bash
Executable File

#!/bin/bash
FILES_TO_FORMAT="atat/ tests/ app.py script/"
if [ "$1" == "check" ]; then
pipenv run black --check ${FILES_TO_FORMAT}
yarn run prettier --list-different "js/**/*.js" --config ./prettier.config.json
yarn run prettier --list-different "styles/**/*.scss"
else
pipenv run black ${FILES_TO_FORMAT}
yarn run prettier --list-different --write "js/**/*.js" --config ./prettier.config.json
yarn run prettier --list-different --write "styles/**/*.scss"
fi