Commit Graph

37 Commits

Author SHA1 Message Date
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
Anthony Sottile
47bad120e4 Made env generation polymorphic 2014-03-13 20:48:00 -07:00
Anthony Sottile
5ca8f4ffa8 Repository now parses languages and manifests 2014-03-13 20:33:42 -07:00
Anthony Sottile
d77d01cd22 Rename RepoInstaller to Repository 2014-03-13 19:38:52 -07:00