Mark Mayo
43e9a86394
some updates and fixes
...
Didn't get around to it in my previous attempt, so doing it now.
- updated deprecated .warn() to .warning()
- unnecessary f-strings
- imported sys to allow sys.exit calls instead of exit
- simplified some not checks
- replaced type with isinstance
-
2023-04-17 12:02:39 +12:00
marsha
d3c0a66d23
move slowest python-specific tests out of repository_test
2023-03-12 08:24:38 -05:00
Marcelo Galigniana
f39154f69f
Add pre-rebase hook support
2023-03-11 15:17:42 -05:00
Anthony Sottile
e3e17a1617
make --hook-type and stages match
2023-03-11 14:26:14 -05:00
marsha
63a180a935
rewrite args with spaces test to not require python
2023-03-09 00:41:27 -06:00
marsha
5ce4a549d3
prefer sys.platform over os.name when checking for windows OS
2023-03-03 22:13:07 -06:00
Anthony Sottile
a631abdabf
remove sorting for repo key for additional_deps
...
in other languages this order can matter (such as ruby)
2023-02-22 20:31:14 -05:00
Anthony Sottile
4ded56efac
fix trailing whitespace in CalledProcessError output
2023-02-21 12:42:09 -05:00
Anthony Sottile
cddc9cff0f
only treat exit code 1 as a successful diff
2023-02-21 12:20:25 -05:00
Anthony Sottile
1054afd978
Merge pull request #2772 from pre-commit/run-language-for-repository-test
...
use run_language for repository_test
2023-02-20 22:49:55 -05:00
Anthony Sottile
d23990cc8b
use run_language for repository_test
2023-02-20 22:21:31 -05:00
Anthony Sottile
51b14c2b37
Merge pull request #2771 from pre-commit/ruby-is-the-only-bytesio
...
resources_bytesio is only used by ruby
2023-02-20 22:17:20 -05:00
Anthony Sottile
8d84a7a270
resources_bytesio is only used by ruby
2023-02-20 21:47:01 -05:00
Anthony Sottile
25b8ad7528
improve unit test coverage of lang_base
2023-02-20 21:32:32 -05:00
Anthony Sottile
4f6ba18cad
Merge pull request #2767 from pre-commit/test-more-directly
...
test things more directly to improve coverage
2023-02-20 18:52:11 -05:00
Anthony Sottile
c3613b954a
test things more directly to improve coverage
2023-02-20 18:18:08 -05:00
Anthony Sottile
d3883ce7f7
move languages.all and languages.helpers out of languages
2023-02-20 18:03:45 -05:00
marsha
a2373d0a81
test pygrep inline
2023-02-18 17:54:44 -05:00
marsha
4fdfb25a52
test fail language inline
2023-02-13 17:03:59 -06:00
marsha
915b930a5d
test dotnet directly
2023-02-07 21:47:26 -06:00
marsha
6804100701
test golang directly
2023-02-06 17:02:20 -06:00
Anthony Sottile
0afb95ccca
test docker and docker_image directly
2023-02-04 17:22:06 -05:00
Anthony Sottile
0c1267b214
deprecate python_venv language
2023-02-04 14:26:09 -05:00
Adam Johnson
7783a3e63a
Add --no-textconv to git diff calls
2023-02-03 15:56:11 +00:00
Anthony Sottile
1129e7d222
fixup Gemfile in ruby tests
2023-02-01 18:17:24 -05:00
Anthony Sottile
d216cdd5c1
fix golang version regex in test
2023-02-01 18:16:09 -05:00
Anthony Sottile
909dd0e8a1
test node directly
2023-01-31 21:13:11 -05:00
Anthony Sottile
5b50acbd2c
test ruby directly
2023-01-30 21:36:13 -05:00
Anthony Sottile
77b4ea38ca
Merge pull request #2729 from pre-commit/rust-tests
...
test rust directly
2023-01-29 19:00:09 -05:00
Anthony Sottile
2adca78c6f
test rust directly
2023-01-29 18:27:10 -05:00
Anthony Sottile
420902f67c
fix r local hooks
...
`language: r` acts more like `language: script` so we have to *not* append
the prefix when run with `repo: local`
2023-01-29 17:27:42 -05:00
Anthony Sottile
6e8051b9e6
speed up ruby tests by picking a prebuilt in 22.04
2023-01-28 18:36:35 -05:00
Anthony Sottile
bff5e0e738
introduce install state v2 to replace v1
...
the v1 state is unnecessary since new repos are created for new additional_dependencies
2023-01-23 19:58:48 -05:00
Anthony Sottile
50848aaca2
Merge pull request #2709 from pre-commit/test-lua
...
test lua directly
2023-01-18 00:12:28 -05:00
Anthony Sottile
f042540311
test lua directly
2023-01-17 23:43:31 -05:00
Anthony Sottile
7512e3b7e1
test r language directly
2023-01-17 23:25:00 -05:00
Anthony Sottile
043565d28a
test dart directly
2023-01-17 18:44:14 -05:00
Anthony Sottile
d24055cb40
test perl language directly
2023-01-17 17:34:04 -05:00
Anthony Sottile
9a56f8dca0
Merge pull request #2705 from pre-commit/speed-up-r-tests
...
speed up R unit tests
2023-01-17 14:51:00 -05:00
Anthony Sottile
966c67a832
speed up R unit tests
2023-01-17 14:16:13 -05:00
Anthony Sottile
c36f03cd2e
test swift language directly
2023-01-17 13:51:06 -05:00
Anthony Sottile
f1b5f66374
test conda language directly
2023-01-17 13:05:49 -05:00
Anthony Sottile
70bfd76ced
coursier: additional_dependencies support
2023-01-17 09:59:04 -05:00
Anthony Sottile
628c876b2d
adjust the run_hook api to no longer take Hook
2023-01-16 16:34:01 -05:00
Anthony Sottile
ae34a962d7
make in_env part of the language api
2023-01-16 15:36:29 -05:00
taoufik07
9afd63948e
Make Go a first class language
2023-01-13 12:42:57 -05:00
Anthony Sottile
619f2bf5a9
eagerly catch invalid yaml in migrate-config
2023-01-09 12:31:05 -05:00
taoufik07
bf1a1fa5fd
Fix command normalization when a custom env is passed
2023-01-06 09:27:49 -05:00
Anthony Sottile
0dbc154380
Merge pull request #2672 from taoufik07/remove_gopath_special_build
...
Remove `GOPATH` special build
2023-01-02 19:32:08 -05:00
taoufik07
60a42e9419
Remove GOPATH special build
2023-01-02 18:53:14 -05:00