mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
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
```
|
||
|---|---|---|
| .. | ||
| commands | ||
| languages | ||
| meta_hooks | ||
| __init__.py | ||
| clientlib_test.py | ||
| color_test.py | ||
| conftest.py | ||
| envcontext_test.py | ||
| error_handler_test.py | ||
| git_test.py | ||
| logging_handler_test.py | ||
| main_test.py | ||
| make_archives_test.py | ||
| output_test.py | ||
| parse_shebang_test.py | ||
| prefix_test.py | ||
| repository_test.py | ||
| staged_files_only_test.py | ||
| store_test.py | ||
| util_test.py | ||
| xargs_test.py | ||