Skip to content

Instantly share code, notes, and snippets.

@wonderful-panda
Created September 12, 2012 17:29
Show Gist options
  • Save wonderful-panda/3708414 to your computer and use it in GitHub Desktop.
Save wonderful-panda/3708414 to your computer and use it in GitHub Desktop.
from fnmatch import fnmatch
def check_pdb(ui, repo, hooktype, node=None, source=None, **kwargs):
for file in [f for f in repo[node].files() if fnmatch(f, '*.py')]:
# ファイルごとにチェック
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment