Anthony Sottile
420902f67c
fix r local hooks
...
`language: r` acts more like `language: script` so we have to *not* append
the prefix when run with `repo: local`
2023-01-29 17:27:42 -05:00
Anthony Sottile
628c876b2d
adjust the run_hook api to no longer take Hook
2023-01-16 16:34:01 -05:00
Anthony Sottile
ae34a962d7
make in_env part of the language api
2023-01-16 15:36:29 -05:00
Anthony Sottile
07554e9525
add additional info to healthy-after-install check
2022-04-16 16:46:28 -04:00
Anthony Sottile
04de6a2e57
drop python 3.6 support
...
python 3.6 reached end of life on 2021-12-23
2022-01-18 18:44:20 -05:00
Anthony Sottile
fa8d022813
Remove unnecessary forward annotations
2020-02-07 08:32:39 -08: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
327ed924a3
Add types to pre-commit
2020-01-12 10:15:01 -08:00
Anthony Sottile
30c1e8289f
upgrade hooks, pyupgrade pre-commit
2020-01-12 09:27:04 -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
b59d7197ff
Use Hook api in languages
2018-12-31 13:16:48 -08:00
Anthony Sottile
6bac405d40
Minor cleanups
2018-11-01 18:05:36 -07:00
Chris Kuehl
ba5e27e4ec
Implement concurrent execution of individual hooks
2018-10-24 16:16:10 -07:00
Anthony Sottile
8fb644e7c0
Simplify prefix a bit
2018-01-13 16:08:18 -08:00
Anthony Sottile
7d87da8acd
Move PrefixedCommandRunner -> Prefix
2018-01-11 21:41:48 -08: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
cff98a634d
Recover from invalid python virtualenvs
2017-07-20 10:57:09 -07:00
Anthony Sottile
d876661345
Use a more intelligent default language version
2017-07-08 21:11:48 -07:00
Anthony Sottile
6055af8bc8
Make shlex behaviour of entry more consistent
2017-01-05 11:52:29 -08:00
Anthony Sottile
b7d395410b
Implement a simplified xargs in python
2016-03-25 11:21:50 -07:00
Anthony Sottile
a5b56bd9e3
Factor out bash and activate files
2016-03-25 11:21:50 -07:00
Anthony Sottile
738c2ad7bd
Fixups + make the tests work
2015-11-20 13:52:20 -08:00
Anthony Sottile
fb0d67bd87
Some slight fixups
2015-11-19 12:46: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
Anthony Sottile
66b1d39c6e
Allow arbitrary bytes in output. Resolves #245
2015-07-23 12:59:13 -07:00
Anthony Sottile
2ec7a34035
Fix filenames with spaces in them.
2014-06-20 10:20:02 -07:00
Anthony Sottile
2cfd2818b5
Add pcre type.
2014-06-16 21:11:00 -07:00
Anthony Sottile
85a76617c1
Refactor fixtures in tests.
2014-06-15 18:49:45 -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
1746a97e24
Better project structure
2014-04-12 15:56:18 -07:00
Anthony Sottile
74363e6ec2
Print message when installing repositories.
2014-04-03 23:31:45 -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