Commit Graph

180 Commits

Author SHA1 Message Date
Anthony Sottile
38d3fab4ea Do logging on install-hooks during install command. 2014-07-28 14:24:00 -07:00
Anthony Sottile
50a7020d6e Merge pull request #148 from pre-commit/run_as_dash_m
Runnable as python -m pre_commit
2014-07-23 19:49:33 -07:00
Anthony Sottile
ffe65ad275 Runnable as python -m pre_commit 2014-07-22 19:22:29 -07:00
Anthony Sottile
eb11ec2878 Merge pull request #147 from pre-commit/print_hook_id_on_failure
Print hookid on failure.
2014-07-22 06:59:07 -07:00
Anthony Sottile
5956b7ab46 Use sys.executable instead of python. 2014-07-22 06:57:07 -07:00
Anthony Sottile
b8c8120f2a Print hookid on failure. 2014-07-22 06:54:48 -07:00
Anthony Sottile
7c49c9f7d9 Default tput cols to 80. 2014-07-17 16:47:57 -07:00
Anthony Sottile
f1575b4f7b Use nodeenv with python -m 2014-07-07 12:43:50 -07:00
Anthony Sottile
31a3b2ecb6 Install hooks before attempting to run anything 2014-07-04 11:11:21 -07:00
Anthony Sottile
76ffb3665a Merge pull request #135 from pre-commit/install_hooks
Support --install-hooks as an option for pre-commit install
2014-07-03 19:38:56 -07:00
Anthony Sottile
90648bc9ec Add tests for main. 2014-07-03 19:19:55 -07:00
Anthony Sottile
bdbf1cfdb1 Support --install-hooks as an option for pre-commit install 2014-07-03 17:22:32 -07:00
Anthony Sottile
2e387e9bcb Add a comment about why we exclude .git 2014-06-25 11:46:04 -07:00
Anthony Sottile
df52667950 Fix writing tarfile with unicode filename in python 2.6 2014-06-23 14:30:26 -07:00
Anthony Sottile
bee56cd5bc Use our archives instead of pulling from gits. 2014-06-23 13:50:40 -07:00
Anthony Sottile
8fee06b53e resource_filename instead of trying to remember the right invocation to pkg_resources. 2014-06-23 13:25:37 -07:00
Anthony Sottile
c7b605fee2 Add the archive resources. 2014-06-23 13:06:14 -07:00
Anthony Sottile
a7133d6742 Add make archives scripts. 2014-06-23 13:04:47 -07:00
Anthony Sottile
e40a151e8c Treat diffs as maybe-not-utf8. 2014-06-23 07:49:14 -07:00
Anthony Sottile
2ec7a34035 Fix filenames with spaces in them. 2014-06-20 10:20:02 -07:00
Anthony Sottile
5d1ffcba75 Hashlib doesn't take unicode. 2014-06-18 07:37:17 -07:00
Anthony Sottile
4ec877628d Use hash of repository name to allow tags. 2014-06-18 07:37:16 -07:00
Anthony Sottile
f63fa850c9 Use less readlink for osx peeps. 2014-06-17 20:17:47 -07:00
Anthony Sottile
5e8a6414cd Use either pre-commit or python -m pre_commit.main. 2014-06-17 17:01:51 -07:00
Anthony Sottile
5575dbae05 Use aspy.yaml instead. 2014-06-17 09:29:39 -07:00
Anthony Sottile
a984a02c84 Make ordereddict a direct dependency. 2014-06-17 06:59:13 -07:00
Anthony Sottile
203c554734 Use cached-property package. 2014-06-17 06:49:54 -07:00
Anthony Sottile
2cfd2818b5 Add pcre type. 2014-06-16 21:11:00 -07:00
Anthony Sottile
0cde0fdc48 Uninstall restores hooks. 2014-06-16 17:48:56 -07:00
Anthony Sottile
f4d16b9cdc Combine install and uninstall. 2014-06-16 17:45:13 -07:00
Anthony Sottile
ac735e85e2 Make install -f / --overwrite work. 2014-06-16 17:41:16 -07:00
Anthony Sottile
1d8394afd0 Add first pass at migration mode. 2014-06-16 15:31:22 -07:00
Anthony Sottile
a744a6484e git mv pre_commit/resources/pre-commit.sh pre_commit/resources/pre-commit-hook 2014-06-16 13:07:54 -07:00
Anthony Sottile
4b43fd8cdc Add integration test for existing install behaviour 2014-06-16 12:53:26 -07:00
Anthony Sottile
85a76617c1 Refactor fixtures in tests. 2014-06-15 18:49:45 -07:00
Anthony Sottile
3baefd57e2 Convert autoupdate_test to use new fixture functions. 2014-06-15 17:00:35 -07:00
Anthony Sottile
7b1230df27 Use plumbum a bit better. 2014-06-15 14:19:05 -07:00
Anthony Sottile
a7506061bd Add -V / --version 2014-06-15 12:49:51 -07:00
Anthony Sottile
cdfd3f7670 Move commands into their own files. 2014-06-13 19:52:14 -07:00
Anthony Sottile
111ed02938 git mv pre_commit/run.py pre_commit/main.py 2014-06-13 19:52:08 -07:00
Anthony Sottile
c4e4c2dccb Fix merge conflict detection for cherry-pick conflict. 2014-06-13 06:50:17 -07:00
Anthony Sottile
1701756988 Don't add defaults when updating. 2014-06-11 17:41:45 -07:00
Anthony Sottile
07664a80ca Attempt ruby-download before ruby-build. 2014-06-07 14:25:44 -07:00
Anthony Sottile
09650b814a Allow language_version to be overridden in config. 2014-06-07 13:27:45 -07:00
Anthony Sottile
9b03068189 Remove most of five 2014-06-06 07:52:02 -07:00
Anthony Sottile
01b557c497 Various cleanup. 2014-06-06 07:38:25 -07:00
Anthony Sottile
bf912cfebb Add checking for manifest files regex. 2014-06-06 06:53:00 -07:00
Anthony Sottile
96174deac6 Make hooks specify files. Optionally allow config to override manifest. 2014-06-05 18:39:34 -07:00
Anthony Sottile
02a79bf1c3 Support language_version for ruby as well. 2014-06-03 13:28:20 -07:00
Anthony Sottile
511de4fe32 Support hooks with custom node version. 2014-06-02 16:10:59 -07:00