Commit Graph

66 Commits

Author SHA1 Message Date
Marc Jay 82969e4ba3 Use set rather than list for commit message related stages, remove
default file open modes, tidy up bash call for failing hook test
2019-04-21 21:58:01 +01: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 dc28922ccb Run pre-commit autoupdate
Committed via https://github.com/asottile/all-repos
2019-03-21 21:09:33 -07:00
Anthony Sottile 29460606b2 Migrate to official pycqa/flake8 hooks repo
Committed via https://github.com/asottile/all-repos
2019-01-30 00:39:01 -08:00
Anthony Sottile e4f0b4c1b7 Only configure logging inside the context 2019-01-01 15:01:37 -08:00
Anthony Sottile e4cf5f321b just use normal dicts in tests 2018-12-31 11:15:22 -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 d46bbc486f Use in_git_dir in more places 2018-12-27 18:25:54 -08:00
Anthony Sottile fe409f1a43 Remove stateful Runner 2018-12-26 22:33:21 -08:00
Mickaël Schoentgen 67d6fcb0f6 Fix several ResourceWarning: unclosed file 2018-08-10 18:30:22 +02:00
Anthony Sottile c01ffc83f8 Separate store from runner 2018-06-29 22:35:53 -07:00
Anthony Sottile 6d683a5fac clean: separate store from runner 2018-06-29 20:08:23 -07:00
Anthony Sottile 96e9d1b758 Restore git 1.8 support 2018-03-12 14:36:07 -07:00
Anthony Sottile bf5792eb10 Add a manual stage for cli-only interaction 2018-03-07 12:41:25 -08:00
Anthony Sottile 29033f10ca Move cwd() to tests-only 2018-02-24 16:44:59 -08:00
Anthony Sottile b827694520 Each set of additional dependencies gets its own env 2018-02-24 15:28:43 -08:00
Anthony Sottile 0f54fedac9 Replace deprecated yield_fixture with fixture
Committed via https://github.com/asottile/all-repos
2018-01-21 15:31:17 -08:00
Anthony Sottile 7d87da8acd Move PrefixedCommandRunner -> Prefix 2018-01-11 21:41:48 -08:00
Anthony Sottile d0b268c813 Add support for commit-msg git hook 2017-07-23 20:50:25 -07:00
Anthony Sottile a6a4762f0d Fix resetting of FakeStream 2017-07-23 20:50:25 -07:00
Anthony Sottile a4da7b8c8c Replace calls to touch with open(..., 'a').close() 2017-07-08 15:43:36 -07:00
Anthony Sottile 918179849d Make autoupdate --tags-only the default, add --bleeding-edge 2017-04-29 17:40:42 -07:00
Anthony Sottile c65a11ce3d Replace five with six 2017-03-08 14:25:54 -08:00
Anthony Sottile b9e5184ebd Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml 2017-01-21 13:47:59 -08:00
Jacob Scott f205e6d170 Incoroporate PR feedback
* Make config_file a required argument to Runner
* Update main.py
* Update tests to make them all green

New test to test alternate config functionality coming in next commit
2016-12-02 13:53:59 -08:00
Anthony Sottile 573442faf3 Configure logging under test 2016-11-26 16:41:45 -08:00
Anthony Sottile a7169905dc Centralize logging initialization 2016-11-26 14:19:37 -08:00
Anthony Sottile 0dda19f691 Reorganize output writing 2016-11-26 12:15:55 -08:00
Anthony Sottile c3c98afe4f Support pre-commit from inside submodules 2015-12-18 15:35:44 -08:00
Anthony Sottile f4d4679fd7 Remove adding config file in one place 2015-12-09 14:27:22 -08:00
Anthony Sottile 0da258043f Use path.join 2015-11-23 23:46:58 -08:00
Anthony Sottile 1dfcf10036 git grep -l tmpdir_factory | xargs sed -i 's/tmpdir_factory/tempdir_factory/g' 2015-10-01 10:24:54 -07:00
Anthony Sottile 02f0a1c434 Actually print while installing 2015-02-22 16:18:46 -08:00
Anthony Sottile fd109b7745 reorder-python-imports 2015-01-04 15:49:19 -08:00
Anthony Sottile bbd2572b11 Remove plumbum 2014-10-02 06:59:37 -07:00
Anthony Sottile 85a76617c1 Refactor fixtures in tests. 2014-06-15 18:49:45 -07:00
Anthony Sottile 047a933554 Move empty_git_dir out of pytest fixtures. 2014-06-15 15:47:11 -07:00
Anthony Sottile 7b1230df27 Use plumbum a bit better. 2014-06-15 14:19:05 -07:00
Anthony Sottile cdfd3f7670 Move commands into their own files. 2014-06-13 19:52:14 -07:00
Anthony Sottile 07664a80ca Attempt ruby-download before ruby-build. 2014-06-07 14:25:44 -07:00
Anthony Sottile 96174deac6 Make hooks specify files. Optionally allow config to override manifest. 2014-06-05 18:39:34 -07:00
Anthony Sottile 02a79bf1c3 Support language_version for ruby as well. 2014-06-03 13:28:20 -07:00
Anthony Sottile 511de4fe32 Support hooks with custom node version. 2014-06-02 16:10:59 -07:00
Anthony Sottile fdd6989ece Add failing test for versioned repositories. 2014-06-02 06:39:46 -07:00
Anthony Sottile 61606cfaa4 Allow spaces in system hooks. Closes #95. 2014-05-18 14:20:11 -07:00
Anthony Sottile b381bb68b7 Support ruby through a combination of rbenv, ruby-build, and GEM_HOME 2014-05-03 23:32:18 -07:00
Anthony Sottile 479eb51873 Implement Store. pre-commit now installs files to ~/.pre-commit 2014-05-02 14:56:47 -07:00
Anthony Sottile 5810ee4315 Implement merge-files only using @bukzor's method. 2014-04-15 09:17:55 -07:00
Anthony Sottile 94d626691f Move get_head_sha into testing since it is only used by tests. 2014-04-14 09:57:38 -07:00