Skip to content

Instantly share code, notes, and snippets.

View struys's full-sized avatar

Ken Struys struys

View GitHub Profile
YELP-9:pre-commit.github.io kstruys$ pre-commit
Traceback (most recent call last):
File "/usr/local/bin/pre-commit", line 5, in <module>
from pkg_resources import load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
(py_env)YELP-9:pre-commit.github.io kstruys$ git commit -m "change all-repos.yaml to use git urls"
[INFO] Installing environment for [email protected]:pre-commit/mirrors-scss-lint.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
Traceback (most recent call last):
File "/Users/kstruys/Desktop/pre-commit.github.io/py_env/bin/pre-commit", line 9, in <module>
load_entry_point('pre-commit==0.2.7', 'console_scripts', 'pre-commit')()
File "/Users/kstruys/Desktop/pre-commit.github.io/py_env/lib/python2.7/site-packages/pre_commit/util.py", line 41, in wrapper
return func(argv)
File "/Users/kstruys/Desktop/pre-commit.github.io/py_env/lib/python2.7/site-packages/pre_commit/main.py", line 99, in main
/**
* .-´¯¯¯`-.
* ,´ `.
* | JLATT \
* \ _ \
* ,\ _ ,´¯,/¯)\
* ( q \ \,´ ,´ ,´¯)
* `._,) -´,-´)
* \/ ,´/
* ) / /
class _ImporterProxy(object):
def __init__(self, mod):
self.__mod = mod
def __getattr__(self, meth):
try:
ret = getattr(self.__mod, meth)
except AttributeError:
ret = _ImporterProxy(__import__(self.__mod.__name__ + '.' + meth, fromlist=['__trash']))