#!/bin/bash

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

project_paths="photoalbum config"

# black
black ${project_paths} --check

# isort check
isort --check-only --diff ${project_paths}

# flake8
flake8 ${project_paths}

# 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
