13 lines
404 B
Bash
Executable File
13 lines
404 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FILES_TO_FORMAT="atst/ tests/ app.py script/"
|
|
|
|
if [ "$1" == "check" ]; then
|
|
pipenv run black --check ${FILES_TO_FORMAT}
|
|
yarn run prettier --check "js/**/*.js" --config ./prettier.config.json
|
|
else
|
|
pipenv run black ${FILES_TO_FORMAT}
|
|
yarn run prettier --write "js/**/*.js" --config ./prettier.config.json
|
|
sass-convert ./styles --in-place --recursive --from scss --to scss --quiet
|
|
fi
|