summaryrefslogtreecommitdiffstats
path: root/run_checks.sh
blob: 187e6b94abdc7537e64b0cb8e6fea72b126c6ada (plain)
1
2
3
4
5
6
7
8
#!/bin/bash -e
[[ -z "${GITHUB_ACTIONS}" ]] && RETURN_ERROR_CODE='' || RETURN_ERROR_CODE='--check'
TARGETS="sqlglot/ tests/"
python -m mypy $TARGETS
python -m autoflake -i -r ${RETURN_ERROR_CODE} $TARGETS
python -m isort $TARGETS
python -m black --line-length 100 ${RETURN_ERROR_CODE} $TARGETS
python -m unittest