pre-commit/pre_commit
Joseph Moniz 0603c3c931 Add a coursier_launch integration
This is a follow up to the repository based coursier integration. The
standard coursier integration is to this integration what the docker
integration is to the docker_image integration.

This is meant to target either maven coordinates or coursier apps
directly without depending on a hook repository containing app
descriptors and hook configs making this integration highly suitable
for local hooks.

An example of hook local targets are bellow
```yaml
- repo: local
  hooks:
    - id: scalafmt
      name: scalafmt
      entry: scalafmt # coursier app target
      language: coursier_launch
      files: (\.scala|\.sbt|\.sc)$
    - id: scalafix
      name: scalafix
      entry: ch.epfl.scala:::scalafix-cli:latest.release # maven coordinates target
      language: coursier_launch
      files: (\.scala|\.sbt|\.sc)$
    - id: echo-java
      name: echo-java
      entry: echo-java
      language: coursier_launch
      args: ["--", "hello from java"] # forward arguments to the app
```
2020-11-06 12:55:21 -05:00
..
commands Merge pull request #1684 from pre-commit/migrate_config_less_work 2020-11-05 16:27:23 -08:00
languages Add a coursier_launch integration 2020-11-06 12:55:21 -05:00
meta_hooks add types_or 2020-11-02 17:25:10 +00:00
resources update rbenv / ruby-build 2020-09-22 23:03:01 -07:00
__init__.py Initial commit. 2014-03-12 20:25:19 -07:00
__main__.py upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -08:00
clientlib.py add types_or 2020-11-02 17:25:10 +00:00
color.py warn on old list-style configuration 2020-07-25 13:04:54 -07:00
constants.py add support for post-commit 2020-04-27 10:55:22 -07:00
envcontext.py Replace EnvironT with MutableMapping[str, str] 2020-10-28 13:00:25 -07:00
error_handler.py Distinct error handling exit codes 2020-10-28 11:13:04 -07:00
errors.py check cygwin mismatch earlier 2020-09-20 10:42:11 -07:00
file_lock.py upgrade mypy to get typeshed fixes 2020-07-08 13:55:28 -07:00
git.py Replace EnvironT with MutableMapping[str, str] 2020-10-28 13:00:25 -07:00
hook.py add types_or 2020-11-02 17:25:10 +00:00
logging_handler.py Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
main.py check cygwin mismatch earlier 2020-09-20 10:42:11 -07:00
make_archives.py update rbenv / ruby-build 2020-09-22 23:03:01 -07:00
output.py More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
parse_shebang.py Use covdefaults to handle coveragerc 2020-02-29 14:25:19 -08:00
prefix.py Add types to pre-commit 2020-01-12 10:15:01 -08:00
repository.py fix atomic file replace on windows 2020-08-23 10:18:59 -07:00
staged_files_only.py fix hooks firing during staged_files_only 2020-05-02 14:00:21 -07:00
store.py fix atomic file replace on windows 2020-08-23 10:18:59 -07:00
util.py Replace EnvironT with MutableMapping[str, str] 2020-10-28 13:00:25 -07:00
xargs.py Replace EnvironT with MutableMapping[str, str] 2020-10-28 13:00:25 -07:00