Commit Graph

150 Commits

Author SHA1 Message Date
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
Anthony Sottile
4b98b39cea language_version works for python. 2014-06-02 07:26:44 -07:00
Anthony Sottile
a7ab9b2a28 Pass language_version to the install method for each language. 2014-06-02 06:57:07 -07:00
Anthony Sottile
4f2f1731ea Add language_version to the manifest loader. 2014-06-02 06:50:57 -07:00
Anthony Sottile
914a74f80b Make language check more strict. 2014-06-02 06:47:59 -07:00
Anthony Sottile
39c4ee6e96 Use asottile.cached_property. 2014-06-01 16:41:58 -07:00
Anthony Sottile
3213703a49 Use 1.9.3-p547 instead. 2014-06-01 16:06:35 -07:00
Anthony Sottile
61606cfaa4 Allow spaces in system hooks. Closes #95. 2014-05-18 14:20:11 -07:00
Anthony Sottile
b381bb68b7 Support ruby through a combination of rbenv, ruby-build, and GEM_HOME 2014-05-03 23:32:18 -07:00
Anthony Sottile
c5cbd473c7 Simplify Repository.cmd_runner 2014-05-02 22:47:23 -07:00
Anthony Sottile
479eb51873 Implement Store. pre-commit now installs files to ~/.pre-commit 2014-05-02 14:56:47 -07:00
Anthony Sottile
cce97ccba9 Include hook id in output with --verbose. Closes #88. 2014-04-19 22:27:21 -04:00
Anthony Sottile
edb04422b8 Not sure why it was -6. Changed to -1 2014-04-19 15:44:43 -07:00
Anthony Sottile
744b883b01 Add mechanism to skip hooks. Closes #40. 2014-04-19 11:06:25 -07:00
Anthony Sottile
dd0c33fae3 Write files as utf8 more. Closes #85. 2014-04-18 14:05:34 -07:00
Anthony Sottile
3ebf976afb Add logging message. 2014-04-15 09:31:40 -07:00
Anthony Sottile
5810ee4315 Implement merge-files only using @bukzor's method. 2014-04-15 09:17:55 -07:00
Anthony Sottile
94d626691f Move get_head_sha into testing since it is only used by tests. 2014-04-14 09:57:38 -07:00
Anthony Sottile
2e4cde9cb0 Simplify has_unmerged_paths 2014-04-13 23:52:52 -07:00
Anthony Sottile
846ddeed67 Fixes crash during merge conflict. Closes #82. 2014-04-13 23:44:53 -07:00
Anthony Sottile
f94f56addf Fix (hopefully) bug where an empty patch was generated. Closes #76 2014-04-13 21:22:08 -07:00
Anthony Sottile
3e2b1862ad Don't stash with --all-files. Closes #68. 2014-04-13 20:04:58 -07:00
Anthony Sottile
8a8b2241a6 Add --no-stash option. 2014-04-13 20:00:10 -07:00
Anthony Sottile
5386b0eea0 Pass write down from commands to logging handler. 2014-04-13 18:43:43 -07:00
Anthony Sottile
374ef75835 Convert LoggingHandler to use sys.stdout.write 2014-04-13 18:36:14 -07:00
Anthony Sottile
de24712a6f Skip hooks if no files to check. Closes #69. 2014-04-13 17:39:58 -07:00
Anthony Sottile
7d4787eced Increase coverage moar 2014-04-13 15:28:48 -07:00
Anthony Sottile
cd36e9e779 Fix Py3 2014-04-13 14:29:45 -07:00
Anthony Sottile
5eda121260 Move stuff into commands and write tests. 2014-04-13 14:07:52 -07:00
Anthony Sottile
366bc1d1cc Fix str() call 2014-04-12 23:46:03 -07:00
Anthony Sottile
bb365a6e68 Python 3 compatibility. 2014-04-12 23:46:03 -07:00