Commit Graph

502 Commits

Author SHA1 Message Date
Thierry Deo
69333fa227 Add multiline mode to pygrep 2018-02-26 10:17:21 +01:00
Anthony Sottile
5651c66995 Migrate sha -> rev 2018-02-24 20:19:39 -08:00
Anthony Sottile
184e22e81f Merge pull request #714 from pre-commit/remove_cwd_fn
Move cwd() to tests-only
2018-02-24 17:44:45 -08:00
Anthony Sottile
86da772fd2 Merge pull request #713 from pre-commit/update_many_repos
Allow autoupdate --repo to be specified multiple times
2018-02-24 17:04:18 -08:00
Anthony Sottile
29033f10ca Move cwd() to tests-only 2018-02-24 16:44:59 -08:00
Anthony Sottile
f76d3c4f95 Allow autoupdate --repo to be specified multiple times 2018-02-24 15:42:26 -08:00
Anthony Sottile
b827694520 Each set of additional dependencies gets its own env 2018-02-24 15:28:43 -08:00
Anthony Sottile
bdad930d71 Move pre_commit.schema to cfgv library 2018-02-18 15:25:53 -08:00
Anthony Sottile
5c90c1a68f Rewrite the hook template in python 2018-02-03 22:51:00 -08:00
Bastien Gérard
b319d6f80c Add a hook option that allows stdout to be printed when exit code is 0 (#695) 2018-02-01 12:21:19 +01:00
Anthony Sottile
49dc689bf0 Fix legacy commit-msg hooks 2018-01-29 21:47:35 -08:00
Sam Duke
1bfd108593 Properly detect if commit is a root commit
Fix bad check for ancestor root commits.
2018-01-24 14:01:59 +00:00
Anthony Sottile
5a4dc0ce30 https-ify links
- A lot of http links loaded fine on https
- pre-commit.com is now loadable on https via cloudflare
2018-01-13 18:17:54 -08:00
Anthony Sottile
d5dcebf671 Deprecate the pcre language 2018-01-13 17:28:19 -08:00
Anthony Sottile
8fb644e7c0 Simplify prefix a bit 2018-01-13 16:08:18 -08:00
Anthony Sottile
6e46d6ae75 Support node on windows with long path hack 2018-01-12 22:31:43 -08:00
Anthony Sottile
7d87da8acd Move PrefixedCommandRunner -> Prefix 2018-01-11 21:41:48 -08:00
Anthony Sottile
4d6efe1943 Merge pull request #680 from pre-commit/local_golang_repos
Fix broken local golang repos
2018-01-09 10:23:37 -08:00
Anthony Sottile
40690064f7 Fix broken local golang repos 2018-01-09 09:42:44 -08:00
Anthony Sottile
df38e1010b Remove unused import 2018-01-09 08:49:42 -08:00
Iulian Onofrei
81df782c20 Update unstaged config file error message 2018-01-09 18:10:05 +02:00
Iulian Onofrei
8407b92b18 Replace string literals with constants 2018-01-09 17:51:41 +02:00
Anthony Sottile
029ccc47c8 Invoke git diff without a pager 2018-01-07 20:56:17 -08:00
Anthony Sottile
753979d720 Detect the python version based on the py launcher 2018-01-02 19:02:26 -08:00
Rory Prendergast
355196f92e backs out unnecessary blank line 2018-01-02 13:05:41 -08:00
Rory Prendergast
9eadfb92fd reduces line length 2018-01-02 13:05:41 -08:00
Rory Prendergast
e3cf0975f9 Adds whitelist for GIT_* env vars containing only GIT_SSH 2018-01-02 13:05:41 -08:00
Kevin Hock
090030447d Combine blocks 2017-11-08 17:05:34 -08:00
Kevin Hock
dfb058f15f Edit comment again 2017-11-08 15:55:05 -08:00
Kevin Hock
e4f28a2193 Edit comment 2017-11-08 15:53:08 -08:00
Kevin Hock
54ccb65a09 Add existing repo_config to output_repos 2017-11-08 15:50:04 -08:00
Anthony Sottile
fccb4e6935 Minor fixes 2017-11-06 18:14:59 -08:00
Kevin Hock
4d0c400066 Add repo option to autoupdate 2017-11-06 17:19:06 -08:00
Anthony Sottile
ae5b74ad38 always_run hooks always apply to the repository 2017-11-03 09:30:03 -07:00
Anthony Sottile
e99813f117 Rename check-files-matches-any to check-hooks-apply 2017-11-03 09:18:58 -07:00
Anthony Sottile
61aa43ddd2 Merge pull request #642 from jimmidyson/docker-selinux
Add selinux labelling option to docker_image hook type
2017-11-02 17:50:28 -05:00
Anthony Sottile
2e5b4fcf4c Add comment about Z flag for selinux 2017-11-02 15:30:28 -07:00
Anthony Sottile
5a8ca2ffbe Some minor fixups 2017-10-30 09:12:48 -07:00
Paul Hooijenga
9db827ef9d Refactor meta hooks 2017-10-28 13:59:11 +02:00
Paul Hooijenga
a0a8fc15ff Make Not and NotIn namedtuples 2017-10-27 13:30:36 +02:00
Anthony Sottile
bc9344bb40 Merge branch 'master' into meta-hooks 2017-10-26 23:40:14 -05:00
Anthony Sottile
84b1ba520d Remove Manifest, no longer a useful abstraction 2017-10-26 16:17:52 -07:00
Anthony Sottile
6a0fe9889b Apply interpreter version defaulting to local hooks too 2017-10-26 15:02:52 -07:00
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
Jimmi Dyson
f0cf940cb5 Add selinux labelling option to docker_image hook type 2017-10-23 11:11:24 +01: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