#!/bin/sh

if git diff --name-only --cached | grep -E '\.py$'; then
    make lint
    make check-types || exit 1
fi