Commit graph

84 commits

Author SHA1 Message Date
anthony sottile
fc33a62f3c upgrade rbenv / ruby-build 2025-10-24 15:18:07 -04:00
Byoungchan Lee
f1cc7a445f Make Dart pre-commit hook compatible with the latest Dart SDKs
Dart introduced sound null safety in version 2.12.0, and as of Dart 3,
null safety is mandatory. Older Dart SDKs allowed both pre-null safety
and null-safe packages, but modern Dart SDKs, where most source code is
null-safe, now reject pre-null safety packages.

The current `pubspec.yaml` template with `sdk: '>=2.10.0'` is
incompatible with recent Dart SDKs, leading to the following error:

An unexpected error has occurred: CalledProcessError: command: ('/path/to/dart-sdk/bin/dart', 'pub', 'get')
return code: 65
stdout:
    Resolving dependencies...
stderr:
    The lower bound of "sdk: '>=2.10.0'" must be 2.12.0'
    or higher to enable null safety.

    The current Dart SDK (3.8.3) only supports null safety.

    For details, see https://dart.dev/null-safety

To ensure compatibility with the modern Dart ecosystem, this commit
updates the minimum Dart SDK version to 2.12.0 or higher,
which implicitly supports null safety.
Additionally, `testing/get-dart.sh` has been updated to verify that
the pre-commit hook functions correctly with the latest Dart versions.
2025-08-08 17:14:59 +09:00
Anthony Sottile
c9454e2ec3 regenerate ruby-build archive 2024-09-28 13:07:55 -04:00
Anthony Sottile
e687548842 regenerate archives with python3.12 2024-09-28 13:07:38 -04:00
Jamie Alessio
cfcb88364e Upgrade to ruby-build v20230330 2023-04-18 10:58:57 -07:00
Jamie Alessio
14c38d18fc Upgrade to ruby-build v20221225 2023-01-21 11:05:13 -08:00
mishaschwartz
97ad4f89ec ruby: update ruby-build to 20220710 to ensure that the correct openssl version is used 2022-11-07 18:39:24 -05:00
Jamie Alessio
392bc33466 Update ruby-build to v20220412 2022-04-17 07:12:48 -07:00
Anthony Sottile
1722448c3b fix python 2.7 repo: local hooks 2022-04-02 21:19:13 -04:00
Jamie Alessio
9021fa15dd Update ruby-build to latest available 2022-03-31 14:05:30 -04:00
Anthony Sottile
04de6a2e57 drop python 3.6 support
python 3.6 reached end of life on 2021-12-23
2022-01-18 18:44:20 -05:00
Matt Layman
3f8be7400d Add naive and untested version of Lua language support. 2022-01-17 13:43:38 -05:00
Jamie Alessio
428dc6e46e Update rbenv / ruby-build versions 2022-01-15 16:19:28 -05:00
Anthony Sottile
087541cb2d fix indent in hook-tmpl 2021-10-30 12:11:52 -04:00
Anthony Sottile
0b87867729 silence the output of command -v 2021-10-28 21:21:59 -07:00
Anthony Sottile
e622f793c3 port hook template to bash
this avoids some version-specific code in python

this also makes the bootstrap script slightly more portable
2021-09-27 19:34:04 -04:00
Anthony Sottile
f8e21cb78b add support for dart as a hook language 2021-08-29 08:57:56 -07:00
Jamie Alessio
14afbc7ad6 Update rbenv / ruby-build 2021-05-18 08:08:07 -07:00
Anthony Sottile
9f2f405c3f
Merge pull request #1915 from pre-commit/reproducible-tar
make tarfile creation reproducible
2021-05-18 07:59:54 -07:00
Anthony Sottile
c2108d6d43 make tarfile creation reproducible 2021-05-17 20:15:00 -07:00
Anthony Sottile
3922263f8c Use more inclusive language
Committed via https://github.com/asottile/all-repos
2021-05-14 19:11:05 -07:00
Lorenz
b8fff8c508 Avoid warnings with R hooks when renv version don't match 2021-05-04 18:56:43 -07:00
Anthony Sottile
d5eda977ce fix archive permissions for ruby tar.gz roots 2021-04-06 07:55:32 -07:00
Anthony Sottile
3bada745ea upgrade ruby-build 2021-03-22 19:41:30 -07:00
Lorenz
f1502119a2 add support for R via renv 2021-03-07 13:58:14 -08:00
Rafik Draoui
fe1f56c08f Add support for Go 1.16
Go 1.16 changes the way modules are handled. It now expects Go projects
to have non-empty `go.mod` files.

This change is compatible with Go 1.15.

Fixes #1815
2021-02-25 19:25:39 -04:00
Thomas Romera
36653586a0 update rbenv / ruby-build 2020-09-22 23:03:01 -07:00
Ville Skyttä
e2ed73209a Add dummy go.mod for local "empty" installs 2020-05-02 21:02:36 +03:00
Ville Skyttä
04471f7d97 Add perl additional dependencies test 2020-02-01 16:13:01 +02:00
Anthony Sottile
95b8d71bd9 Move most of the actual hook script into pre-commit hook-impl 2020-01-21 16:41:22 -08:00
Anthony Sottile
0bb8a8fabe Move test to install_uninstall test so environment variables apply 2020-01-16 13:02:20 -08:00
David Martinez Barreiro
57cc814b8b Push remote env var details 2020-01-16 12:35:04 -08:00
Anthony Sottile
9000e9dd41 Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
Anthony Sottile
aefbe71765 Clean up calls to .encode() / .decode() 2020-01-12 10:46:33 -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
c699e255a1 support pre-merge-commit 2019-12-26 21:21:00 -08:00
Uwe L. Korn
4ff23b4eab Support for conda as a language 2019-12-20 18:43:59 -08:00
John Cooper
1bd745eccf Added new versions of rbenv and ruby-build 2019-10-28 19:54:14 +00:00
Anthony Sottile
fb15fa65f2 Fix handling of SIGINT in hook script 2019-05-13 12:33:51 -07:00
Marc Jay
e60f541559 Adds support for prepare-commit-msg hooks
Adds a prepare-commit-msg hook stage which allows for hooks which add
dynamic suggested/placeholder text to commit messages that an author can
use as a starting point for writing a commit message
2019-04-21 21:07:13 +01:00
Anthony Sottile
03ac3b0840
Merge pull request #981 from tristan0x/fix/infinite-process-recursion
Do not run legacy script again when this is the one being executed
2019-03-30 13:54:42 -07:00
Anthony Sottile
bbc3130af2 Produce slightly more helpful message 2019-03-30 13:40:37 -07:00
Artem Polishchuk
9f0cfed600 Specify env python explicitly. 2019-03-30 19:56:52 +02:00
Tristan Carel
ec72cb7260
assert that the pre-commit script being executed is not the legacy 2019-03-29 13:55:04 +01:00
Tristan Carel
cd61269389
Do not run legacy script again when this is the one being executed 2019-03-27 06:24:47 +01:00
Anthony Sottile
9f60561d6f Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
Anthony Sottile
3181b461aa fix pushing to new branch not identifying all commits 2018-10-10 20:08:16 -07:00
Anthony Sottile
7e69d117c6 Work around sys.executable issue using brew python on macos
https://github.com/Homebrew/homebrew-core/issues/30445
2018-07-24 16:05:26 -07:00