Commit Graph

127 Commits

Author SHA1 Message Date
DanielChabrowski
e74253d2de Allow shallow cloning 2019-03-03 01:35:53 +01:00
Anthony Sottile
ea58596a56 Revert "Merge pull request #888 from pre-commit/887_xfail_windows_node_again"
This reverts commit 45a34d6b75, reversing
changes made to d0c62aae7a.
2019-01-20 22:22:39 -08:00
Anthony Sottile
bea33af310 small cleanups in tests 2019-01-06 12:08:52 -08:00
Anthony Sottile
9e34e6e316 pre-commit gc 2019-01-02 19:07:23 -08:00
Anthony Sottile
bdc58cc33f Teach pre-commit try-repo to clone uncommitted changes 2019-01-01 15:01:36 -08:00
Anthony Sottile
e4cf5f321b just use normal dicts in tests 2018-12-31 11:15:22 -08:00
Anthony Sottile
c577ed92e7 Refactor pre_commit.repository and factor out cached-property 2018-12-30 20:56:49 -08:00
Anthony Sottile
160a11a0a7 Improve git_commit helper 2018-12-28 15:32:25 -08:00
Pedro Algarvio
28c97a95cd Don't fail if GPG signing is configured by default. All references. 2018-12-28 20:11:37 +00:00
Anthony Sottile
91782bb6c8 xfail windows node until #887 is resolved 2018-12-19 17:03:52 -08:00
Anthony Sottile
15b1f118b5 Update fixtures.py 2018-12-14 13:14:13 -08:00
Pedro Algarvio
afeac2f099 Don't fail if GPG signing is configured by default 2018-12-14 11:45:01 +00:00
Anthony Sottile
9f60561d6f Replace resources with importlib_resources 2018-10-14 14:37:35 -07:00
Mickaël Schoentgen
67d6fcb0f6 Fix several ResourceWarning: unclosed file 2018-08-10 18:30:22 +02:00
Anthony Sottile
4f419fdaab Revert "Merge pull request #799 from pre-commit/temporarily_skip_npm_windows"
This reverts commit 063014ffd8, reversing
changes made to 259ef9e530.
2018-07-18 15:25:48 -07:00
Anthony Sottile
5b559dbe91 Temporarily xfail node on windows 2018-07-17 18:07:14 -07:00
Anthony Sottile
c79bc2eb8e Oops, this wrote a hash.txt file to the working dir 2018-07-04 15:31:10 -07:00
Daniele Esposti
b7ba4a1708 Added hash of Swift tarballs 2018-07-04 22:58:00 +01:00
Daniele Esposti
0f600ea0f0 Wget timestamping incompatible with -O 2018-07-04 08:36:32 +01:00
Daniele Esposti
e6b6abeb9f Added Swift cache 2018-07-04 01:59:42 +01:00
Anthony Sottile
37c94bbe71 Fix invalid escape sequences 2018-06-17 23:51:03 -07:00
Anthony Sottile
f0842429b9 Move testing scripts into testing 2018-06-05 18:26:02 -07:00
Anthony Sottile
51cf46e660 Simplify setup.py in arbitrary_bytes_repo 2018-06-03 20:56:07 -07:00
Chris Kuehl
b4edf2ce50 Add tests for Rust 2018-05-22 21:52:34 -07:00
Anthony Sottile
7f29fd5591 Adjust feature detection for 2.7.15 2018-05-21 22:20:37 -07:00
Anthony Sottile
f88e007f52 Fix test since pip 10 changed output 2018-05-21 21:38:36 -07:00
Anthony Sottile
b5af5a5b27 Add test for python_venv language 2018-05-12 11:37:13 -07:00
Anthony Sottile
96e9d1b758 Restore git 1.8 support 2018-03-12 14:36:07 -07:00
Anthony Sottile
5651c66995 Migrate sha -> rev 2018-02-24 20:19:39 -08:00
Anthony Sottile
29033f10ca Move cwd() to tests-only 2018-02-24 16:44:59 -08:00
Anthony Sottile
bdad930d71 Move pre_commit.schema to cfgv library 2018-02-18 15:25:53 -08:00
Anthony Sottile
6e46d6ae75 Support node on windows with long path hack 2018-01-12 22:31:43 -08:00
Anthony Sottile
b4541d8a5f Update the versioned node hook test 2018-01-11 22:20:21 -08:00
Iulian Onofrei
8407b92b18 Replace string literals with constants 2018-01-09 17:51:41 +02:00
Anthony Sottile
a506a1cac1 Simplify cross version tests 2018-01-02 18:34:00 -08:00
Anthony Sottile
56fca92a42 Remove slowtests=false setting
It wasn't actually working because of tox, I also don't use this.
2017-11-02 15:48:43 -07:00
Anthony Sottile
2c88791a7f Add pre-commit try-repo
`try-repo` is useful for:
- Trying out a remote hook repository without needing to configure it.
- Testing a hook repository while developing it.
2017-10-07 18:03:52 -07:00
Anthony Sottile
e9509306d8 Implement pygrep language as a replacement for pcre 2017-09-22 22:31:30 -07:00
Anthony Sottile
989bcfe9ca Use file:// protocol for cloning under test 2017-09-22 10:38:19 -07:00
Anthony Sottile
3e76cdaf25 Enable map configurations (config v2). 2017-09-06 10:01:08 -07:00
Anthony Sottile
9c3bbecab8 Add new docker_image language type.
`docker_image` is intended to be a lightweight hook type similar to system /
script which allows one to use an existing docker image which provides a
hook.
2017-09-02 19:49:23 -07:00
Anthony Sottile
8f86f8f156 Merge pull request #553 from pre-commit/remove_legacy_hooks_yaml_support
Remove legacy 'hooks.yaml' file support
2017-07-26 05:50:41 -07:00
Anthony Sottile
d0b268c813 Add support for commit-msg git hook 2017-07-23 20:50:25 -07:00
Anthony Sottile
be3fbdf94e Upgrade add-trailing-comma to 0.4.0 2017-07-15 12:32:36 -07:00
Anthony Sottile
86d9ca053b Remove legacy 'hooks.yaml' file support 2017-07-13 10:29:36 -07:00
Anthony Sottile
0c70fa4229 Use asottile/add-trailing-comma 2017-07-12 18:30:51 -07:00
Anthony Sottile
096f906912 More specific symlink testing without checking in a symlink 2017-07-02 21:49:41 -07:00
Anthony Sottile
05a108efe1 Implement exclude_types 2017-07-02 19:08:33 -07:00
Anthony Sottile
a58d99ac40 Implement types filtering 2017-07-02 18:51:23 -07:00
Alex Hutton
f2644a4f2e Adds support for 'log_file' in hook config
Specify a filename on a per hook basis and
pre-commit will write the STDOUT and STDERR
of that hook into the file. Useful for CI.

Resolves #499.
2017-05-08 10:54:04 +10:00