Paul Hooijenga
8a0dd01c7e
Implement check-files-matches-any meta hook
2017-10-25 10:09:44 +02:00
Paul Hooijenga
8df11ee7aa
Implement check-useless-excludes meta hook
2017-10-25 10:09:43 +02:00
Paul Hooijenga
88c676a7c1
Add support for meta hooks
2017-10-22 16:40:19 +02:00
Anthony Sottile
ac21235b84
Remove unused logger
2017-10-20 14:15:15 -07:00
Anthony Sottile
10912fa03e
Lazily install repositories
2017-10-20 13:04:33 -07:00
Anthony Sottile
2c88791a7f
Add pre-commit try-repo
...
`try-repo` is useful for:
- Trying out a remote hook repository without needing to configure it.
- Testing a hook repository while developing it.
2017-10-07 18:03:52 -07:00
Anthony Sottile
e70825ab31
Add ctypes to healthy check
2017-10-03 21:10:09 -07:00
Anthony Sottile
18c9e061d8
Small cleanups
2017-09-30 15:53:44 -07:00
Anthony Sottile
e9509306d8
Implement pygrep language as a replacement for pcre
2017-09-22 22:31:30 -07:00
Anthony Sottile
989bcfe9ca
Use file:// protocol for cloning under test
2017-09-22 10:38:19 -07:00
Anthony Sottile
916ca72bb1
Use some bash best practices and simplify hook template
2017-09-21 16:09:49 -07:00
Anthony Sottile
873dd173ce
Use pipes.quote for executable path
2017-09-21 15:16:48 -07:00
Anthony Sottile
c3c6175c94
Merge pull request #622 from pre-commit/staged_files_only_patch_dir_does_not_exist
...
Do not crash in staged_files_only if patch_dir does not exist
2017-09-17 17:03:28 -07:00
Anthony Sottile
bcf6321bd4
Do not crash in staged_files_only if patch_dir does not exist
2017-09-17 15:22:48 -07:00
Anthony Sottile
b907c02f05
Also check the ssl module for virtualenv health.
2017-09-14 10:09:25 -07:00
Anthony Sottile
ecdc22ce80
Implement global exclude
2017-09-10 15:09:44 -07:00
Anthony Sottile
6af60158ec
Refactor filename collection for hooks
2017-09-09 22:07:27 -07:00
Anthony Sottile
a821172d9d
Remove defaults before checking whether the intelligent rewrite was successful
2017-09-08 14:28:23 -07:00
Anthony Sottile
72e3989350
Revert "Remove remove_defaults -- it wasn't doing anything"
...
This reverts commit ee392275f3 .
2017-09-08 14:22:36 -07:00
Anthony Sottile
898a3ea1bb
Implement fail_fast.
2017-09-08 13:19:00 -07:00
Anthony Sottile
a78f5d5c24
pre-commit migrate-config should not return nonzero when successful
2017-09-07 09:23:36 -07:00
Anthony Sottile
9ff6818270
Merge pull request #602 from pre-commit/xdg_cache_dir
...
Adhere to XDG specification for cache dir.
2017-09-07 08:19:45 -07:00
Anthony Sottile
8f5675d813
Implement pre-commit migrate-config
2017-09-06 10:07:55 -07:00
Anthony Sottile
3e76cdaf25
Enable map configurations (config v2).
2017-09-06 10:01:08 -07:00
Anthony Sottile
0120af56a7
Adhere to XDG specification for cache dir.
2017-09-06 10:00:35 -07:00
Anthony Sottile
92f98088eb
Whitespace fixup
2017-09-06 08:28:50 -07:00
Lucas Cimon
e465129bd4
NodeJS hooks compatibilty fix for Cygwin - take 2
2017-09-06 17:16:58 +02:00
Anthony Sottile
6141c419ee
Remove Runner.cmd_runner and Store.cmd_runner
2017-09-05 14:49:31 -07:00
Anthony Sottile
95c3afacda
Config loading uses ordered_load by default
2017-09-05 14:07:27 -07:00
Anthony Sottile
bfa23f1f4f
Merge pull request #606 from pre-commit/minor-hook-tmpl-fixups
...
Fix error message during pre-push / commit-msg
2017-09-05 10:22:43 -07:00
Anthony Sottile
98ca85eef5
Merge pull request #604 from coldnight/master
...
Fix specify config file not work while installing
2017-09-05 10:12:48 -07:00
Anthony Sottile
7c59607d35
Fix error message during pre-push / commit-msg
2017-09-05 09:33:51 -07:00
Anthony Sottile
95f356d64e
Also add run to the other invocations
2017-09-05 09:29:18 -07:00
Anthony Sottile
eb7c9f44b4
Add test for custom config installation
2017-09-05 09:27:00 -07:00
Anthony Sottile
0815108242
Handle non-ascii filenames from git
2017-09-05 08:10:16 -07:00
wanghui
f9a849abcc
Fix specify config file not work while installing
...
Via `pre-commit install -c .other-config.yaml`
2017-09-05 16:22:54 +08:00
Anthony Sottile
a9e1940f7e
Use SystemExit instead of PreCommitSystemExit
2017-09-04 13:42:19 -07:00
Anthony Sottile
7cb3e00731
Only print that the lock is being acquired when waiting
2017-09-04 11:53:17 -07:00
Anthony Sottile
9c3bbecab8
Add new docker_image language type.
...
`docker_image` is intended to be a lightweight hook type similar to system /
script which allows one to use an existing docker image which provides a
hook.
2017-09-02 19:49:23 -07:00
Anthony Sottile
625aaf54aa
Limit repository creation to one process
2017-08-23 20:59:03 -07:00
Anthony Sottile
bba711f468
Remove extra newline on error() call
2017-08-23 14:20:44 -07:00
Anthony Sottile
6793fd8e5d
Remove --no-stash and --allow-unstaged-config
2017-08-23 11:16:37 -07:00
Anthony Sottile
469498ac9d
Upgrade the sample-config output
2017-08-10 20:45:29 -07:00
Anthony Sottile
cb8fb8c7c8
Merge pull request #585 from pre-commit/uninstall_commit_msg
...
Allow commit-msg hooks to be uninstalled
2017-08-10 23:55:56 -04:00
Anthony Sottile
5491f8b5eb
Allow commit-msg hooks to be uninstalled
2017-08-10 20:21:09 -07:00
Anthony Sottile
e90778222d
Fix a typo in the install help
2017-08-10 20:18:37 -07:00
Anthony Sottile
ee392275f3
Remove remove_defaults -- it wasn't doing anything
2017-08-10 19:09:25 -07:00
Anthony Sottile
59c6df5e46
When possible, preserve config format on autoupdate
2017-08-10 18:32:24 -07:00
Martin von Gagern
8ad5536688
Initialize git submodules
...
Some packages make use of git submodules, and require all of them to be in place to be installed. One example is my libtidy wrapper for node, which depends on the C sources for libtidy (unless a precompiled binary is available for a given platform). I've been asked to add pre-commit support in https://github.com/gagern/node-libtidy/issues/17 but testing that failed because the source tree was lacking its submodules.
2017-08-07 03:52:06 +01:00
Anthony Sottile
5f3e162646
Appease flake8
2017-08-04 08:31:06 -07:00