832 Commits

Author SHA1 Message Date
Anthony Sottile
75256522bc v0.14.2 v0.14.2 2017-06-09 13:29:43 -07:00
Anthony Sottile
be1256f35a Merge pull request #546 from pre-commit/no_ext_diff
Run git diff with --no-ext-diff
2017-06-09 13:01:44 -07:00
Anthony Sottile
321210d332 Run git diff with --no-ext-diff 2017-06-09 08:34:04 -07:00
Anthony Sottile
3874636f8f Fix typo in changelog 2017-06-03 10:01:41 -07:00
Anthony Sottile
844c839067 v0.14.1 v0.14.1 2017-06-02 08:41:56 -07:00
Anthony Sottile
e150921c75 Followup to #533, match no files when omitted 2017-06-02 08:39:10 -07:00
Anthony Sottile
fc907b512a Merge pull request #542 from pre-commit/virtualenv_no_download
Use VIRTUALENV_NO_DOWNLOAD in pre-commit
2017-06-01 20:29:17 -07:00
Anthony Sottile
a1e3a0a131 Use VIRTUALENV_NO_DOWNLOAD in pre-commit 2017-06-01 14:11:45 -07:00
Anthony Sottile
cb71ea09ff Merge pull request #540 from dainyl/master
Fix for #533
2017-05-30 19:26:47 -07:00
Dain Liffman
d731652a22 Fix for #533 2017-05-31 10:09:42 +08:00
Anthony Sottile
e5c9d3614b v0.14.0 v0.14.0 2017-05-16 12:49:35 -07:00
Anthony Sottile
acc28efe2f Merge pull request #538 from absassi/pass-filenames
Add pass_filenames hook option
2017-05-13 17:18:16 -07:00
André Berti Sassi
7259135d19 Fix string literal type for Python 3 2017-05-13 20:12:16 -03:00
André Berti Sassi
e774c09fac Add pass_filenames hook option
This option controls whether filenames are passed along as arguments to
the hook program.
2017-05-13 14:28:17 -03:00
Anthony Sottile
6025475afb Merge pull request #537 from pre-commit/unicode_commit_messages_python2
Fix non-ascii merge commit messages in python2
2017-05-10 15:06:19 -07:00
Anthony Sottile
964948b33d Fix non-ascii merge commit messages in python2 2017-05-10 12:52:24 -07:00
Anthony Sottile
e3b14c35f7 Merge pull request #535 from pre-commit/fixup
Fixup log_file commit
2017-05-09 06:54:15 -07:00
Anthony Sottile
840a55bbc3 Fixup log_file commit 2017-05-08 11:04:07 -07:00
Anthony Sottile
71e500a177 Merge pull request #530 from alex-hutton/output-to-file-499
Adds support for 'log_file' in hook config
2017-05-08 10:51:57 -07:00
Alex Hutton
f2644a4f2e Adds support for 'log_file' in hook config
Specify a filename on a per hook basis and
pre-commit will write the STDOUT and STDERR
of that hook into the file. Useful for CI.

Resolves #499.
2017-05-08 10:54:04 +10:00
Anthony Sottile
5d43b05bd3 Merge pull request #529 from pre-commit/tags_only_default
Make autoupdate --tags-only the default, add --bleeding-edge
2017-05-05 14:49:15 -07:00
Anthony Sottile
918179849d Make autoupdate --tags-only the default, add --bleeding-edge 2017-04-29 17:40:42 -07:00
Anthony Sottile
1be4e4f82e Merge pull request #517 from hackedd/windows-color
Windows: enable ANSI escape support in console
2017-04-07 15:22:47 -04:00
Paul Hooijenga
3c374802ec Omit Windows only file from coverage. 2017-04-07 21:10:19 +02:00
Paul Hooijenga
6c588f189d Windows: enable ANSI escape support in console. 2017-04-01 23:34:02 +02:00
Anthony Sottile
b63748f557 Merge pull request #515 from pre-commit/sample_config
Add a `pre-commit sample-config` command
2017-03-30 13:31:14 -07:00
Anthony Sottile
fa06e72f01 Add a pre-commit sample-config command 2017-03-30 08:45:46 -07:00
Anthony Sottile
9d747fb471 v0.13.6 v0.13.6 2017-03-27 07:54:44 -07:00
Anthony Sottile
b89962e1dd Merge pull request #513 from pre-commit/always_run_regression
Fix regression in 0.13.5 with always_run + files
2017-03-27 07:53:47 -07:00
Anthony Sottile
ce2f68b40a Fix regression in 0.13.5 with always_run + files 2017-03-27 07:39:19 -07:00
Anthony Sottile
e1cdbb3844 v0.13.5 v0.13.5 2017-03-26 14:58:59 -07:00
Anthony Sottile
9f5c99577b v0.13.4 v0.13.4 2017-03-26 13:45:03 -07:00
Anthony Sottile
6e5ac07927 Merge pull request #507 from kintoandar/patch-1
Fix typos on help description
2017-03-10 09:26:56 -08:00
Joel Bastos
b14fa5a0d8 Fix typos on help description 2017-03-10 17:11:09 +00:00
Anthony Sottile
5c2d196168 Merge pull request #505 from pre-commit/dumb_jsonschema
Replace jsonschema with better error messages
2017-03-08 16:21:05 -08:00
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
71bbdb5b4c Merge pull request #504 from pre-commit/use_version_everywhere
Use our VERSION constant moar
2017-03-06 13:40:52 -08:00
Anthony Sottile
63d6bed423 Use our VERSION constant moar 2017-03-06 13:27:45 -08:00
Anthony Sottile
c1ca3aeaf7 tox list matches travis-ci 2017-02-25 14:09:16 -08:00
Anthony Sottile
772a6eb65e Merge pull request #501 from pre-commit/diff_on_failure
Add a --show-diff-on-failure option
2017-02-25 13:48:48 -05:00
Anthony Sottile
05c88738b0 Add a --show-diff-on-failure option 2017-02-25 10:14:17 -08:00
Anthony Sottile
0ece39c484 v0.13.3 v0.13.3 2017-02-23 17:41:58 -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
Anthony Sottile
478b0c70d8 Merge pull request #496 from philipgian/master
Do not run pre-commit if there is no config file
2017-02-23 16:06:19 -05: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
41dcaff3fb v0.13.2 v0.13.2 2017-02-17 07:16:39 -08:00
Anthony Sottile
b66c292ede Merge pull request #494 from pre-commit/validate_minimum_version
Validate minimum version for local hooks as well
2017-02-16 18:11:31 -05:00