Ben Asher
14cebbb25f
PR feedback fixes
2017-01-13 13:05:44 -08:00
Ben Asher
c68ef12484
fixed path to binary
2017-01-13 11:38:47 -08:00
Ben Asher
b271060aef
fix CI issues
2017-01-13 11:23:16 -08:00
Ben Asher
8893127f27
correctly use ENVIRONMENT_DIR
2017-01-13 11:20:25 -08:00
Ben Asher
bea4e89a48
SwiftPM support
2017-01-13 10:19:41 -08:00
Anthony Sottile
6055af8bc8
Make shlex behaviour of entry more consistent
2017-01-05 11:52:29 -08:00
Ben Picolo
8cbd56a0a5
Put user back where it was
2017-01-05 12:55:08 -05:00
Ben Picolo
54d212f0d7
Use shlex.split
2017-01-05 10:52:31 -05:00
Ben Picolo
b7bd825e15
Support docker hooks with args
2017-01-05 09:31:22 -05:00
Anthony Sottile
e022bc6735
Only --pull on initial docker build
2017-01-04 11:27:40 -08:00
Anthony Sottile
6046b8bd7e
Merge pull request #459 from bpicolo/docker_support
...
Docker hook support for pre-commit
2017-01-04 10:51:25 -08:00
Ben Picolo
b06da3e9cd
Code review tweaks
2017-01-04 13:05:54 -05:00
Ben Picolo
86c0e6d297
Inverse md5 bytesifying
2017-01-04 10:52:56 -05:00
Anthony Sottile
f238495d6b
Add an install-hooks command (similar to install --install-hooks). Resolves #456
2017-01-04 07:52:16 -08:00
Ben Picolo
baf254ab78
Fix user so we can mount volumes as RW
2017-01-04 10:44:18 -05:00
Ben Picolo
9b92f96ed0
Code cleanup and tests
2017-01-04 10:35:00 -05:00
Ben Picolo
5f392f0ba5
Docker hook support for pre-commit
2017-01-03 16:47:59 -05:00
Anthony Sottile
a157e1a63f
xargs returns nonzero for negate + not found exe (fixes pcre + not found #447 )
2016-12-04 15:07:35 -08:00
Anthony Sottile
cf178f99c4
Merge pull request #444 from snakescott/config
...
Add option to run from alternate config file
2016-12-03 11:04:39 -08:00
Jacob Scott
372069f3e5
minor cleanup
2016-12-03 10:47:38 -08:00
alzeih
bbbc29af6f
Update the archive resources
2016-12-03 17:39:41 +13:00
Jacob Scott
f205e6d170
Incoroporate PR feedback
...
* Make config_file a required argument to Runner
* Update main.py
* Update tests to make them all green
New test to test alternate config functionality coming in next commit
2016-12-02 13:53:59 -08:00
Jacob Scott
f1c00eefe4
Add option to run from alternate config file
2016-12-02 11:30:45 -08:00
Anthony Sottile
4e0f73bbf3
Add cygwin check after initialization. Resolves #437
2016-11-26 15:16:55 -08:00
Anthony Sottile
526abd9251
Warn on cygwin python/git mismatch. Resolves #354
2016-11-26 14:44:29 -08:00
Anthony Sottile
a7169905dc
Centralize logging initialization
2016-11-26 14:19:37 -08:00
Anthony Sottile
0dda19f691
Reorganize output writing
2016-11-26 12:15:55 -08:00
Anthony Sottile
5ace43765b
Allow virtualenv creation with strange setup.cfg. Resolves #425
2016-11-07 11:09:32 -08:00
Anthony Sottile
8bcf24e5d5
Merge pull request #421 from pre-commit/py26_cleanup
...
shlex.split works in py27+
2016-10-23 17:31:15 -07:00
Anthony Sottile
c4c02f71a6
Merge pull request #420 from pre-commit/stdlib_venv_strikes_again
...
Fix virtualenv-inside-venv on osx. Resolves #419
2016-10-23 17:00:24 -07:00
Anthony Sottile
cce59d7957
shlex.split works in py27+
2016-10-23 16:55:16 -07:00
Anthony Sottile
e832ddc57f
Merge pull request #408 from pre-commit/no_pyterminalsize
...
Use 80 or min width instead of terminal size
2016-10-23 16:48:53 -07:00
Anthony Sottile
d5ebea31d7
Fix virtualenv-inside-venv on osx. Resolves #419
2016-10-23 16:43:34 -07:00
Anthony Sottile
b81c9802ae
Remove py26 format literals
...
Resolves #403
2016-09-15 08:41:58 -07:00
Sebastien Chemin
5206ce2448
Fix file stashing with external diff tool
...
When git is configured to use an external diff tool to show diffs
(eg. 'git config diff.external mytool'), the stashing unstaged files
will create an empty file that can't be recovered.
Some modifications are permanently lost...
Just disable the ext-diff of git diff to avoid any issue.
Change-Id: I10a57ac2acbcb1f7219455f1958efd50d8452d6a
2016-09-09 16:36:32 +02:00
Anthony Sottile
9c6484b94f
Merge pull request #407 from pre-commit/nopy26_tarfile_open
...
Remove tarfile_open (tarfile open in 2.7+)
2016-08-31 17:24:29 -07:00
Anthony Sottile
a677c42e21
Use 80 or min width instead of terminal size
2016-08-31 17:15:52 -07:00
Anthony Sottile
57cc50e0ad
Remove tarfile_open (tarfile open in 2.7+)
2016-08-31 16:24:30 -07:00
Anthony Sottile
5961a8e5f1
Use super() ('newstyle class' in 2.7+)
2016-08-31 16:20:55 -07:00
Anthony Sottile
b05cc4077e
Fix staged-files-only with a non-utf8-trailing-whitespace diff. Resolves #397
2016-08-18 07:37:33 -07:00
Sander Maijers
1d4a332e04
Clarify/correct error message
...
The error also occurs if the `git` utility isn't available.
2016-08-16 15:47:17 +02:00
Anthony Sottile
5547db93ef
Clarify language around missing hooks. Resolves #386
2016-06-25 08:14:58 -07:00
Anthony Sottile
758faa4ae7
Autoupdate to tags when available
2016-06-23 08:29:33 -07:00
Anthony Sottile
d845ec6e36
Merge pull request #375 from vinayinvicible/master
...
only consider forward diff in changed files
2016-06-01 10:17:21 -07:00
Anthony Sottile
db97cf3329
Don't run on deleted files. Resolves #374
2016-05-25 08:42:02 -07:00
vinay karanam
81d7efa7bb
only consider forward diff in changed files
2016-05-25 14:44:59 +05:30
Anthony Sottile
efe33ffe5c
We're not using pylint
2016-05-20 16:14:18 -07:00
Anthony Sottile
efda3cdcd0
Merge pull request #372 from pre-commit/dont_crash_on_not_found_exe
...
Don't crash when an executable is not found
2016-05-20 15:03:53 -07:00
Anthony Sottile
5a6b6e81e9
Don't crash when an executable is not found
2016-05-20 13:32:33 -07:00
Anthony Sottile
e77bb8f3c3
Fix already using rbenv + default ruby. Resolves #369 .
2016-05-17 08:23:21 -07:00