Commit Graph

94 Commits

Author SHA1 Message Date
Anthony Sottile 4f39946ea3 produce a more useful error message when non-installable things use language_version or additional_dependencies 2021-01-22 13:56:06 -08:00
Anthony Sottile 79b098c409 fix atomic file replace on windows 2020-08-23 10:18:59 -07:00
Anthony Sottile 7da72563dd require healthy() after installation 2020-07-15 21:07:21 -07:00
Anthony Sottile 755b8000f6 move Hook data type to a separate file 2020-01-15 14:20:51 -08:00
Anthony Sottile df40e862f4 More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
Anthony Sottile 67c2dcd90d Remove pre_commit.five 2020-01-12 13:39:53 -08:00
Anthony Sottile 9000e9dd41 Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
Anthony Sottile 4eea90c26c leverage mypy to check language implementations 2020-01-12 10:15:02 -08:00
Anthony Sottile 327ed924a3 Add types to pre-commit 2020-01-12 10:15:01 -08:00
Anthony Sottile fa536a8693 mypy passes with check_untyped_defs 2020-01-12 09:27:04 -08:00
Anthony Sottile 30c1e8289f upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00
Anthony Sottile 97e3371046 Remove deprecated pcre language 2020-01-05 13:58:44 -08:00
Anthony Sottile 7c3404ef1f show color in hook outputs when attached to a tty 2019-10-12 23:17:36 -07:00
Anthony Sottile 625750eeef fixes for cfgv>=2 2019-05-27 13:37:49 -07:00
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