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
Anthony Sottile
45d4a195ef
Environments are now installed to version-specific locations. Resolves #229
2015-05-16 18:51:14 -07:00
Lucas Cimon
b68261c720
Adding support for locally-defined hooks
2015-05-10 23:57:34 +02:00
Anthony Sottile
02f0a1c434
Actually print while installing
2015-02-22 16:18:46 -08:00
Anthony Sottile
1996a4c8a1
Make ^C^C during install not cause subsequent runs to fail. Resolves #186 .
2015-02-07 15:43:58 -08:00
Anthony Sottile
62f13aea56
Allow multiple hooks with same id in .pre-commit-config.yaml
2014-07-31 08:37:37 -07:00
Anthony Sottile
a984a02c84
Make ordereddict a direct dependency.
2014-06-17 06:59:13 -07:00
Anthony Sottile
203c554734
Use cached-property package.
2014-06-17 06:49:54 -07:00
Anthony Sottile
85a76617c1
Refactor fixtures in tests.
2014-06-15 18:49:45 -07:00
Anthony Sottile
96174deac6
Make hooks specify files. Optionally allow config to override manifest.
2014-06-05 18:39:34 -07:00
Anthony Sottile
a7ab9b2a28
Pass language_version to the install method for each language.
2014-06-02 06:57:07 -07:00
Anthony Sottile
39c4ee6e96
Use asottile.cached_property.
2014-06-01 16:41:58 -07:00
Anthony Sottile
c5cbd473c7
Simplify Repository.cmd_runner
2014-05-02 22:47:23 -07:00
Anthony Sottile
479eb51873
Implement Store. pre-commit now installs files to ~/.pre-commit
2014-05-02 14:56:47 -07:00
Anthony Sottile
366bc1d1cc
Fix str() call
2014-04-12 23:46:03 -07:00
Anthony Sottile
bb365a6e68
Python 3 compatibility.
2014-04-12 23:46:03 -07:00
Anthony Sottile
e58d28aad3
yaml extensions and ordereddict are now imported from asottile.
2014-04-12 16:12:10 -07:00
Anthony Sottile
1746a97e24
Better project structure
2014-04-12 15:56:18 -07:00
Anthony Sottile
a3720c0645
Add logging handler.
2014-04-05 21:50:20 -07:00
Anthony Sottile
74363e6ec2
Print message when installing repositories.
2014-04-03 23:31:45 -07:00
Anthony Sottile
bcb00726a1
Clean up directories on failure. Closes #58 .
2014-04-03 22:54:27 -07:00
Anthony Sottile
ac67af21ec
Apply defaults to all of the configs. Much fewer .get()s
2014-03-31 23:22:13 -07:00
Anthony Sottile
c418f2b94e
Implement no-dependency system and script hook types. Closes #39 .
2014-03-30 15:15:13 -07:00
Anthony Sottile
216b5c6ab1
Resolves cwd problem
2014-03-29 23:23:43 -07:00
Anthony Sottile
88686d298f
Add Runner interface.
2014-03-23 16:22:24 -07:00
Anthony Sottile
254655e2fd
Add OrderedDict dependency. Make sure hooks are run in a deterministic order
2014-03-23 12:35:29 -07:00
Anthony Sottile
c3436ebfda
Use --no-checkout when cloning (slight performance hack). Closes #28
2014-03-22 17:03:58 -07:00
Anthony Sottile
871ab4d72f
OMG we're running a hook
2014-03-13 22:12:33 -07:00