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
Anthony Sottile
c972205214
Merge pull request #1684 from pre-commit/migrate_config_less_work
...
only perform migrate_config parsing if it is a list
2020-11-05 16:27:23 -08:00
Anthony Sottile
1975c056bc
Merge pull request #1683 from pre-commit/textwrap_indent
...
use textwrap.indent instead of _indent
2020-11-05 16:22:17 -08:00
Anthony Sottile
b4ab84df58
only perform migrate_config parsing if it is a list
2020-11-05 16:05:41 -08:00
Anthony Sottile
64876697b5
use textwrap.indent instead of _indent
2020-11-05 15:59:46 -08:00
Anthony Sottile
392a1fe16d
Merge pull request #1678 from rkm/dotnet-fix-cleanup
...
fix dotnet build cleanup
2020-11-03 10:33:15 -08:00
Ruairidh MacLeod
aa8023407e
fix dotnet build cleanup
2020-11-03 08:53:17 -08:00
Anthony Sottile
3fa9d3d758
Merge pull request #1677 from MarcoGorelli/types_or
...
Add types_or
2020-11-02 16:01:04 -08:00
Marco Gorelli
62f668fc3f
add types_or
2020-11-02 17:25:10 +00:00
Anthony Sottile
3112e08088
v2.8.2
2020-10-30 13:36:35 -07:00
Anthony Sottile
4aa249c8a5
Merge pull request #1672 from pre-commit/ruby_default
...
don't call rbenv install for language_version = default
2020-10-30 13:22:06 -07:00
Anthony Sottile
e05ac1e91f
don't call ruby install for language_version = default
2020-10-29 19:45:06 -07:00
Anthony Sottile
b2207e5b04
v2.8.1
2020-10-28 23:04:31 -07:00
Anthony Sottile
8fb7365a61
Merge pull request #1669 from pre-commit/not_a_shim_when_home_is_slash
...
allow default language_version of system when homedir is /
2020-10-28 23:03:34 -07:00
Anthony Sottile
62b8d0ed82
allow default language_version of system when homedir is /
2020-10-28 22:56:10 -07:00
Anthony Sottile
711248f678
show features first
2020-10-28 22:01:15 -07:00
Anthony Sottile
a3c9721d8f
v2.8.0
2020-10-28 21:59:03 -07:00
Anthony Sottile
763dbc0ac6
Merge pull request #1668 from pre-commit/avoid_shims
...
don't use system for ruby/node if it is a shim exe
2020-10-28 17:22:27 -07:00
Anthony Sottile
7f9f66e542
don't use system for ruby/node if it is a shim exe
2020-10-28 16:52:55 -07:00
Anthony Sottile
0c339e0647
Merge pull request #1667 from pre-commit/improve_node_install
...
improve node install by using npm pack
2020-10-28 16:03:52 -07:00
Anthony Sottile
29f3e67655
improve node install by using npm pack
2020-10-28 15:13:53 -07:00
Anthony Sottile
2779bde2a2
Merge pull request #1666 from pre-commit/mutable_mapping
...
Replace EnvironT with MutableMapping[str, str]
2020-10-28 14:03:14 -07:00
Anthony Sottile
24dfeed89c
Replace EnvironT with MutableMapping[str, str]
2020-10-28 13:00:25 -07:00
Anthony Sottile
a0c0870b87
Merge pull request #1601 from int3l/distinct_exit_codes
...
Distinct exit codes for the various error cases
2020-10-28 11:59:22 -07:00
int3l
47e758d8f1
Distinct error handling exit codes
...
https://tldp.org/LDP/abs/html/exitcodes.html - exit codes convention
2020-10-28 11:13:04 -07:00
Anthony Sottile
9d0ab3b97b
Merge pull request #1633 from JosephMoniz/add-jvm-coursier-support
...
add coursier (jvm) as a language
2020-10-27 10:13:03 -07:00
Joseph Moniz
70ab1c3b6f
add coursier (jvm) as a language
2020-10-27 09:21:54 -07:00
Anthony Sottile
eee891c8cb
Merge pull request #1662 from pre-commit/pci
...
Add pre-commit.ci
2020-10-26 16:38:49 -07:00
Anthony Sottile
653cdd286b
Add pre-commit.ci
2020-10-26 16:11:27 -07:00
Anthony Sottile
9e4754fb4a
Merge pull request #1616 from pre-commit/zipapp
...
add zipapp support
2020-10-17 11:15:03 -07:00
Anthony Sottile
01f1a0090e
Merge pull request #1643 from MarcoGorelli/negate-pygrep
...
ENH add --negate flag to pygrep
2020-10-17 11:14:19 -07:00
Marco Gorelli
a0658c06bf
add --negate flag to pygrep
2020-10-17 18:50:40 +01:00
Anthony Sottile
6ba50f3aa7
Merge pull request #1644 from MarcoGorelli/clean-pygrep-test
...
Remove unnecessary fixtures in signatures from pygrep tests
2020-10-16 14:27:56 -07:00
Marco Gorelli
2fc676709d
Remove unnecessary fixtures in signatures from pygrep tests
2020-10-16 13:11:18 -07:00
Anthony Sottile
ee1fcfbeca
Merge pull request #1634 from pre-commit/simplify
...
simplify docker run
2020-10-10 18:38:29 -07:00
Anthony Sottile
3584b99caa
simplify docker run
2020-10-10 18:09:51 -07:00
Anthony Sottile
11568caf97
Merge pull request #1637 from pre-commit/conda_test
...
use implementation-agnostic conda package for test
2020-10-10 18:09:09 -07:00
Anthony Sottile
32a286d530
use implementation-agnostic conda package for test
2020-10-10 17:44:56 -07:00
Anthony Sottile
fbd529204b
make an exe stub for windows
2020-09-28 18:37:10 -07:00
Anthony Sottile
bc198b89ca
add zipapp support
2020-09-28 16:57:59 -07:00
Anthony Sottile
202f0bbbc9
Merge pull request #1598 from rkm/feature/dotnet
...
add initial dotnet support
2020-09-27 15:25:56 -07:00
Anthony Sottile
949ea163cd
Merge pull request #1611 from mcsitter/patch-1
...
Update pre-commit version in sample config
2020-09-27 15:16:50 -07:00
Ruairidh MacLeod
003e4c21e0
add initial dotnet support
2020-09-27 15:04:35 -07:00
Maximilian Cosmo Sitter
3de3c6a5fc
Update pre-commit version in sample config
2020-09-27 14:54:42 -07:00
Anthony Sottile
a85b9f798d
Merge pull request #1617 from pre-commit/no_p_default_exe
...
don't pass through -p if using the default version
2020-09-23 18:24:43 -07:00
Anthony Sottile
58a190fd69
don't pass through -p if using the default version
2020-09-23 17:44:18 -07:00
Anthony Sottile
7162a3defe
Merge pull request #1614 from pre-commit/update_rbenv
...
update rbenv / ruby-build
2020-09-23 11:22:17 -07:00
Thomas Romera
36653586a0
update rbenv / ruby-build
2020-09-22 23:03:01 -07:00
Anthony Sottile
1b3d14237a
Merge pull request #1608 from pre-commit/spelling
...
fix a few spelling errors
2020-09-20 19:42:27 -07:00
Anthony Sottile
365f896c36
fix a few spelling errors
...
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
2020-09-20 19:21:24 -07:00