Skip to content

Instantly share code, notes, and snippets.

@Staberinde
Staberinde / post-checkout.py
Created September 7, 2018 11:23 — forked from inklesspen/post-checkout.py
Post-checkout hook to detect alembic issues when switching branches.
#!/usr/bin/env python
"""
Provide useful alembic information after switching branches.
"""
import argparse
import subprocess
import os
import os.path
import py.path