#!/bin/bash

set -e

# defaults if not set
: "${SKIP_LINT:=0}"

# run linting of python files
if [ "$SKIP_LINT" -ne 1 ]; then
    echo 'Running linting...'
    flake8 config.py quarterly_oa_account_review.py queries.py s3_handler.py sql_handler.py
else
    echo 'Skipping linting...'
fi

# run pytest with args set
echo 'Running tests...'
echo 'No test cases'

echo 'Done!'
