Anthony Sottile
917586a0e0
Don't require git for clean, gc, sample-config
2019-03-02 19:01:05 -08:00
Anthony Sottile
9e34e6e316
pre-commit gc
2019-01-02 19:07:23 -08:00
Anthony Sottile
e4f0b4c1b7
Only configure logging inside the context
2019-01-01 15:01:37 -08:00
Anthony Sottile
bdc58cc33f
Teach pre-commit try-repo to clone uncommitted changes
2019-01-01 15:01:36 -08:00
Anthony Sottile
4da461d90a
Fix try-repo relpath while in a sub-directory
2019-01-01 11:57:06 -08:00
Anthony Sottile
fe409f1a43
Remove stateful Runner
2018-12-26 22:33:21 -08: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
0e430be0ce
autoupdate: separate store from runner
2018-06-29 20:04:16 -07:00
Anthony Sottile
cd8179a974
Apply relative files to try-repo also
2018-05-12 10:01:14 -07:00
Anthony Sottile
bf5792eb10
Add a manual stage for cli-only interaction
2018-03-07 12:41:25 -08:00
Anthony Sottile
5651c66995
Migrate sha -> rev
2018-02-24 20:19:39 -08:00
Anthony Sottile
f76d3c4f95
Allow autoupdate --repo to be specified multiple times
2018-02-24 15:42:26 -08:00
Anthony Sottile
5a4dc0ce30
https-ify links
...
- A lot of http links loaded fine on https
- pre-commit.com is now loadable on https via cloudflare
2018-01-13 18:17:54 -08:00
Iulian Onofrei
8407b92b18
Replace string literals with constants
2018-01-09 17:51:41 +02:00
Anthony Sottile
fccb4e6935
Minor fixes
2017-11-06 18:14:59 -08:00
Kevin Hock
4d0c400066
Add repo option to autoupdate
2017-11-06 17:19:06 -08: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
8f5675d813
Implement pre-commit migrate-config
2017-09-06 10:07:55 -07:00
Anthony Sottile
6793fd8e5d
Remove --no-stash and --allow-unstaged-config
2017-08-23 11:16:37 -07:00
Anthony Sottile
cb8fb8c7c8
Merge pull request #585 from pre-commit/uninstall_commit_msg
...
Allow commit-msg hooks to be uninstalled
2017-08-10 23:55:56 -04:00
Anthony Sottile
5491f8b5eb
Allow commit-msg hooks to be uninstalled
2017-08-10 20:21:09 -07:00
Anthony Sottile
e90778222d
Fix a typo in the install help
2017-08-10 20:18:37 -07:00
Anthony Sottile
d0b268c813
Add support for commit-msg git hook
2017-07-23 20:50:25 -07:00
Anthony Sottile
0c70fa4229
Use asottile/add-trailing-comma
2017-07-12 18:30:51 -07:00
Anthony Sottile
918179849d
Make autoupdate --tags-only the default, add --bleeding-edge
2017-04-29 17:40:42 -07:00
Anthony Sottile
fa06e72f01
Add a pre-commit sample-config command
2017-03-30 08:45:46 -07:00
Joel Bastos
b14fa5a0d8
Fix typos on help description
2017-03-10 17:11:09 +00:00
Anthony Sottile
05c88738b0
Add a --show-diff-on-failure option
2017-02-25 10:14:17 -08:00
Anthony Sottile
dbd131f646
Minor fixups
2017-02-23 13:11:40 -08:00
Filippos Giannakos
2f4199850d
Add --allow-missing-config option to install
...
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks
are enabled, `pre-commit` returns an error and the action is aborted.
This is a very common scenario when pre-commit is added later on a
project and the user wants to work on a previous branch where the
configuration file does not exist.
This commits allow the user to optionally install the `pre-commit` hooks
with an option to allow a missing configuration and trigger only the
legacy pre-commit hooks (if any) when it is missing.
2017-02-23 18:25:51 +02:00
Anthony Sottile
109c17c5df
Some minor constants cleanup
2017-02-16 10:44:08 -08:00
Anthony Sottile
52cd42316c
Add a --tags-only option to autoupdate
2017-01-25 21:02:50 -08:00
Anthony Sottile
f238495d6b
Add an install-hooks command (similar to install --install-hooks). Resolves #456
2017-01-04 07:52:16 -08:00
Jacob Scott
372069f3e5
minor cleanup
2016-12-03 10:47:38 -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
Jacob Scott
f1c00eefe4
Add option to run from alternate config file
2016-12-02 11:30:45 -08:00
Anthony Sottile
4e0f73bbf3
Add cygwin check after initialization. Resolves #437
2016-11-26 15:16:55 -08:00
Anthony Sottile
526abd9251
Warn on cygwin python/git mismatch. Resolves #354
2016-11-26 14:44:29 -08:00
Anthony Sottile
a7169905dc
Centralize logging initialization
2016-11-26 14:19:37 -08:00
Anthony Sottile
b81c9802ae
Remove py26 format literals
...
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile
eb6da4ae10
Improve --color help with argparse metavar
2016-03-08 16:34:09 -08:00
Brett
4bb2bfea52
Add periods to help texts for all run commands.
2016-03-08 15:57:55 -08:00
Brett
e0f1a34319
Style: fixed line length
2016-03-08 15:51:28 -08:00
Brett
23a140aa30
Improve help text
...
Add choices to --color help text.
Fix typo in --allow-unstaged-config.
2016-03-08 11:31:21 -08:00
Lucas Cimon
941149942d
Making it possible to invoke pre-commit run --files some.file from a subdirectory of the repository
2016-02-07 12:25:51 -08:00
Anthony Sottile
495fefd316
Fix #322 by only removing git environment variables while cloning
2015-12-22 19:10:08 -08:00
Anthony Sottile
c3c98afe4f
Support pre-commit from inside submodules
2015-12-18 15:35:44 -08:00
Anthony Sottile
d17063862b
Fix issue #300 by removing GIT_WORK_TREE env variable
2015-11-23 16:30:24 -08:00
Anthony Sottile
223f0d4dfb
v0.6.0
2015-10-05 07:53:34 -07:00