#!/bin/bash

set -o errexit
set -o pipefail
set -o nounset

# black
black mentor config --check

# isort check
isort --check-only --diff mentor config

# flake8
flake8 mentor

# bandit
bandit -c bandit.yml -r mentor config

# django check
python3 manage.py check

# check migrations
python3 manage.py makemigrations --dry-run --check

# run tests
pytest
