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
```
|
||
|---|---|---|
| .. | ||
| arbitrary_bytes_repo | ||
| arg_per_line_hooks_repo | ||
| conda_hooks_repo | ||
| coursier_hooks_repo | ||
| coursier_launch_hooks_repo | ||
| docker_hooks_repo | ||
| docker_image_hooks_repo | ||
| dotnet_hooks_csproj_repo | ||
| dotnet_hooks_sln_repo | ||
| exclude_types_repo | ||
| failing_hook_repo | ||
| golang_hooks_repo | ||
| logfile_repo | ||
| modified_file_returns_zero_repo | ||
| node_hooks_repo | ||
| node_versioned_hooks_repo | ||
| not_found_exe | ||
| perl_hooks_repo | ||
| prints_cwd_repo | ||
| python3_hooks_repo | ||
| python_hooks_repo | ||
| python_venv_hooks_repo | ||
| ruby_hooks_repo | ||
| ruby_versioned_hooks_repo | ||
| rust_hooks_repo | ||
| script_hooks_repo | ||
| stdout_stderr_repo | ||
| swift_hooks_repo | ||
| system_hook_with_spaces_repo | ||
| types_or_repo | ||
| types_repo | ||
| img1.jpg | ||
| img2.jpg | ||
| img3.jpg | ||