Commit Graph

54 Commits

Author SHA1 Message Date
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 5e52a657df Remove unused ruby activate script 2020-01-12 13:39:53 -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 7c3404ef1f show color in hook outputs when attached to a tty 2019-10-12 23:17:36 -07:00
Anthony Sottile d3b5a41830 Implement default_language_version 2019-01-05 13:15:23 -08:00
Anthony Sottile b59d7197ff Use Hook api in languages 2018-12-31 13:16:48 -08:00
Anthony Sottile fe409f1a43 Remove stateful Runner 2018-12-26 22:33:21 -08:00
Anthony Sottile 435d9945a3 Switch from deprecated docs-off args to --no-document 2018-12-19 14:22:09 -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 9f60561d6f Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
Anthony Sottile 7d87da8acd Move PrefixedCommandRunner -> Prefix 2018-01-11 21:41:48 -08:00
Anthony Sottile cff98a634d Recover from invalid python virtualenvs 2017-07-20 10:57:09 -07:00
Anthony Sottile be3fbdf94e Upgrade add-trailing-comma to 0.4.0 2017-07-15 12:32:36 -07:00
Anthony Sottile 0c70fa4229 Use asottile/add-trailing-comma 2017-07-12 18:30:51 -07:00
Anthony Sottile d876661345 Use a more intelligent default language version 2017-07-08 21:11:48 -07:00
Chris Kuehl 8f057b0b1b Ignore bundle config files when running ruby hooks 2017-01-23 21:23:14 -08:00
Anthony Sottile b6937f33e2 Fixups to make appveyor happy 2017-01-16 18:50:49 -08:00
Anthony Sottile 6055af8bc8 Make shlex behaviour of entry more consistent 2017-01-05 11:52:29 -08:00
Anthony Sottile b81c9802ae Remove py26 format literals
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile 57cc50e0ad Remove tarfile_open (tarfile open in 2.7+) 2016-08-31 16:24:30 -07:00
Anthony Sottile e77bb8f3c3 Fix already using rbenv + default ruby. Resolves #369. 2016-05-17 08:23:21 -07: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 2aaaddb5cc Fail gracefully on undecodable install output. 2016-01-12 10:08:59 -08:00
Anthony Sottile 738c2ad7bd Fixups + make the tests work 2015-11-20 13:52:20 -08:00
Tobias Macey 0ee4c3efa7 Added unit tests for dependencies 2015-11-20 15:45:34 -05:00
Tobias Macey 862426576f Merge pull request #1 from pre-commit/slight_fixups
Some slight fixups
2015-11-19 22:36:28 -05:00
Tobias Macey d6be9cdf7c Added shell_escape to shell escape dependencies 2015-11-19 16:15:40 -05: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
Mark Larah 1bda89458b Changed to use --no-ri --no-rdoc
Changed to use --no-ri --no-rdoc to fix gem installs on OS X
2015-10-14 17:42:34 +01:00
Lucas Cimon b0791a22bd Adding "--no-document" argument to "gem install" command for ruby-based hooks to fix issue with Cygwin 2015-08-13 16:35:20 +02:00
Anthony Sottile 45d4a195ef Environments are now installed to version-specific locations. Resolves #229 2015-05-16 18:51:14 -07:00
Anthony Sottile bbd2572b11 Remove plumbum 2014-10-02 06:59:37 -07:00
Anthony Sottile 37d3dc0c82 Minor things to trigger a build. 2014-08-26 22:10:08 -07:00
Anthony Sottile bee56cd5bc Use our archives instead of pulling from gits. 2014-06-23 13:50:40 -07:00
Anthony Sottile 07664a80ca Attempt ruby-download before ruby-build. 2014-06-07 14:25:44 -07:00
Anthony Sottile 02a79bf1c3 Support language_version for ruby as well. 2014-06-03 13:28:20 -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 3213703a49 Use 1.9.3-p547 instead. 2014-06-01 16:06:35 -07:00
Anthony Sottile b381bb68b7 Support ruby through a combination of rbenv, ruby-build, and GEM_HOME 2014-05-03 23:32:18 -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 bcb00726a1 Clean up directories on failure. Closes #58. 2014-04-03 22:54:27 -07:00
Anthony Sottile 18249bec8a Simplify installing into virtualenv 2014-03-29 23:27:26 -07:00