#!/bin/sh -e

. scripts/env

export SOURCE_FILES="src/rest_framework_api_key test_project/ tests/conftest.py"

set -x

${PREFIX}black --check --diff --target-version=py36 $SOURCE_FILES
${PREFIX}flake8 $SOURCE_FILES
${PREFIX}mypy $SOURCE_FILES
${PREFIX}isort --check --diff --project=djangorestframework-api-key --recursive $SOURCE_FILES
${PREFIX}python scripts/makemigrations --check
