alexcouper / captainhook

Git hook scripts
BSD 3-Clause "New" or "Revised" License
54 stars 14 forks source link

Weird error on one project... #66

Open alexcouper opened 10 years ago

alexcouper commented 10 years ago
git commit -a
Traceback (most recent call last):
  File ".git/hooks/pre-commit", line 127, in <module>
    exit_code = main(commit_only=not args.all)
  File ".git/hooks/pre-commit", line 96, in main
    for name, mod in checks():
  File ".git/hooks/pre-commit", line 49, in checks
    mod = importlib.import_module("checkers.{0}".format(name))
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/alex/Work/gvs/coredata1.4/.git/hooks/checkers/flake8.py", line 4, in <module>
ImportError: cannot import name python_files_for_commit