Anthony Sottile
c65a11ce3d
Replace five with six
2017-03-08 14:25:54 -08:00
Anthony Sottile
cb8dd335f4
Replace jsonschema with better error messages
2017-03-08 14:07:00 -08:00
Anthony Sottile
63d6bed423
Use our VERSION constant moar
2017-03-06 13:27:45 -08:00
Anthony Sottile
05c88738b0
Add a --show-diff-on-failure option
2017-02-25 10:14:17 -08:00
Anthony Sottile
7a579af884
Merge pull request #497 from pre-commit/future_versions
...
Make hook-tmpl resilient to future changes
2017-02-23 16:15:23 -05:00
Anthony Sottile
dbd131f646
Minor fixups
2017-02-23 13:11:40 -08:00
Filippos Giannakos
2f4199850d
Add --allow-missing-config option to install
...
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks
are enabled, `pre-commit` returns an error and the action is aborted.
This is a very common scenario when pre-commit is added later on a
project and the user wants to work on a previous branch where the
configuration file does not exist.
This commits allow the user to optionally install the `pre-commit` hooks
with an option to allow a missing configuration and trigger only the
legacy pre-commit hooks (if any) when it is missing.
2017-02-23 18:25:51 +02:00
Anthony Sottile
173ce83484
Make hook-tmpl resilient to future changes
2017-02-22 08:48:36 -08:00
Anthony Sottile
f000241dcb
Local repositories clone a blank repo
2017-02-15 15:36:53 -08:00
Anthony Sottile
e704edb5e2
Refactor Repository to be more functional
2017-02-15 12:46:08 -08:00
Anthony Sottile
f7b2948368
Rename some variables to be more like our internal state
2017-02-15 08:57:10 -08:00
Thierry Deo
397efa8080
Keep additional_dependencies in the order in which they are specified
2017-02-09 18:09:09 +01:00
Anthony Sottile
c08400e2bc
Improve messaging for missing hook given #480
2017-01-30 20:43:20 -08:00
Anthony Sottile
8d589a5e97
Make autoupdate slightly more future proof
2017-01-30 18:54:56 -08:00
Anthony Sottile
7e512004d6
Remove pre_commit.ordereddict module
2017-01-30 08:21:34 -08:00
Anthony Sottile
52cd42316c
Add a --tags-only option to autoupdate
2017-01-25 21:02:50 -08:00
Anthony Sottile
abcc41611e
Use a binary which works on windows
2017-01-25 20:32:54 -08:00
Anthony Sottile
51d673dff5
Remove unnecessary files after installation
2017-01-25 16:45:03 -08:00
Anthony Sottile
84ba1fd0c2
additional_dependencies support for golang hooks
2017-01-25 13:44:35 -08:00
Anthony Sottile
068c18d38a
Add first class support for golang hooks
2017-01-24 13:49:22 -08:00
Chris Kuehl
260f981ae8
Add failing test for BUNDLE_DISABLE_SHARED_GEMS
2017-01-23 19:59:28 -08:00
Anthony Sottile
b9e5184ebd
Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml
2017-01-21 13:47:59 -08:00
Anthony Sottile
ba75867c93
py27+ syntax improvements
2017-01-21 11:49:53 -08:00
Ben Asher
ac2520c86f
skip if swift not installed
2017-01-13 13:51:10 -08:00
Ben Asher
ca731268a4
added test for swift hook
2017-01-13 13:33:44 -08:00
Ben Picolo
b7bd825e15
Support docker hooks with args
2017-01-05 09:31:22 -05: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
08b379bf45
Coverage complete
2017-01-04 13:16:32 -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
9b92f96ed0
Code cleanup and tests
2017-01-04 10:35:00 -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
0e2c3c1ff9
Merge pull request #441 from alzeih/patch-1
...
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
2016-12-03 16:47:11 -08:00
alzeih
bdcbdc2e37
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
...
Occurs when tests run with tox not with Travis CI or Appveyor
Changed existing tox setenv statement to use whitespace around `=` as per
http://tox.readthedocs.io/en/latest/example/basic.html#setting-environment-variables
2016-12-04 13:33:41 +13:00
Jacob Scott
727247e6ed
Add tests for alternate config
2016-12-02 16:25:10 -08: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
Anthony Sottile
573442faf3
Configure logging under test
2016-11-26 16:41:45 -08:00
Anthony Sottile
4e0f73bbf3
Add cygwin check after initialization. Resolves #437
2016-11-26 15:16:55 -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
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
b81c9802ae
Remove py26 format literals
...
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile
cc65fa98d2
Add regression test for external diff tools
...
See #409
Resolves #410
2016-09-10 09:24:28 -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
b05cc4077e
Fix staged-files-only with a non-utf8-trailing-whitespace diff. Resolves #397
2016-08-18 07:37:33 -07: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
a5f312e4e1
Use python3.4 and 3.5 instead of 3.3 and 3.4
2016-06-01 09:20:41 -07:00