Commit Graph

80 Commits

Author SHA1 Message Date
Anthony Sottile
bd65d8947f Implement default_stages 2019-01-06 10:32:58 -08:00
Anthony Sottile
d3b5a41830 Implement default_language_version 2019-01-05 13:15:23 -08:00
Anthony Sottile
fc84567923 Default local / meta through cfgv 2019-01-05 08:31:03 -08:00
Anthony Sottile
b59d7197ff Use Hook api in languages 2018-12-31 13:16:48 -08:00
Anthony Sottile
c577ed92e7 Refactor pre_commit.repository and factor out cached-property 2018-12-30 20:56:49 -08:00
Anthony Sottile
a49a34ef3d Add identity meta hook 2018-12-29 13:13:31 -08:00
Anthony Sottile
6cde287a1e Install multi-hook repositories only once 2018-10-23 10:28:37 -07:00
Anthony Sottile
ebe5132576 Replace pkg_resources.get_distribution with importlib-metadata 2018-10-14 12:24:59 -07:00
Mickaël Schoentgen
67d6fcb0f6 Fix several ResourceWarning: unclosed file 2018-08-10 18:30:22 +02:00
Anthony Sottile
b87c4fd8cc Remove more properties from Runner 2018-07-01 19:49:15 -07:00
Anthony Sottile
c01ffc83f8 Separate store from runner 2018-06-29 22:35:53 -07:00
Anthony Sottile
5651c66995 Migrate sha -> rev 2018-02-24 20:19:39 -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
7d87da8acd Move PrefixedCommandRunner -> Prefix 2018-01-11 21:41:48 -08:00
Iulian Onofrei
8407b92b18 Replace string literals with constants 2018-01-09 17:51:41 +02:00
Anthony Sottile
e99813f117 Rename check-files-matches-any to check-hooks-apply 2017-11-03 09:18:58 -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
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
Paul Hooijenga
88c676a7c1 Add support for meta hooks 2017-10-22 16:40:19 +02: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
e9509306d8 Implement pygrep language as a replacement for pcre 2017-09-22 22:31:30 -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
cff98a634d Recover from invalid python virtualenvs 2017-07-20 10:57:09 -07:00
Anthony Sottile
0c70fa4229 Use asottile/add-trailing-comma 2017-07-12 18:30:51 -07:00
Anthony Sottile
cb8dd335f4 Replace jsonschema with better error messages 2017-03-08 14:07:00 -08:00
Anthony Sottile
5bfe4e5366 Validate minimum version for local hooks as well 2017-02-16 14:30:01 -08:00
Anthony Sottile
109c17c5df Some minor constants cleanup 2017-02-16 10:44:08 -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
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
Anthony Sottile
b81c9802ae Remove py26 format literals
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile
5547db93ef Clarify language around missing hooks. Resolves #386 2016-06-25 08:14:58 -07:00
Anthony Sottile
b85a674026 Make additional_dependencies rollforward safe 2015-12-10 12:21:03 -08:00
Anthony Sottile
ce307a16e0 Add an option to require a specific pre-commit version 2015-12-06 20:54:07 -08:00
Anthony Sottile
603bf159d9 Produce a useful error message when hook id is not present. Resolves #194 2015-11-25 23:13:49 -08:00
Anthony Sottile
de2ead13a1 Minor fixups 2015-11-23 12:19:02 -08:00
Tobias Macey
3726f07a3f Reformatted method signatures, fixed typos 2015-11-19 15:16:02 -05:00
Tobias Macey
06b3d91da0 Added the additional_dependencies config parameter
Added the ability to specify additional dependencies to be installed in
the pre-commit environment. Fixed broken tests.
2015-11-19 12:29:41 -05:00
Lucas Cimon
b575cb510c Fix #238 : pre-commit autoupdate fails with local hooks 2015-06-02 23:30:06 +02:00