Anthony Sottile
8a3c740f9e
Implement pre-commit autoupdate --freeze
2019-12-28 13:07:39 -08:00
Anthony Sottile
c699e255a1
support pre-merge-commit
2019-12-26 21:21:00 -08:00
Anthony Sottile
2bdbd9e7a0
Fix for newest git
2019-12-06 09:27:19 -08:00
Anthony Sottile
0760bec3ff
Show better error message when running inside .git
2019-11-18 14:57:41 -08:00
Anthony Sottile
36609ee305
Fix hook_types when calling init-templatedir
2019-09-30 10:29:53 -07:00
Anthony Sottile
a18646deb2
Allow --hook-type to be specified multiple times
2019-09-23 11:14:36 -07:00
Anthony Sottile
da80cc6479
Allow init-templatedir to be called outside of git
2019-08-03 11:41:54 -07:00
Edgar Geier
aaa249bda9
Overwrite default value of --color argument with PRE_COMMIT_COLOR env var
2019-07-23 17:42:28 +02:00
Anthony Sottile
9a52eefc99
Implement pre-commit init-templatedir
2019-07-20 20:33:42 -07:00
Anthony Sottile
3def940574
reorder pre-commit sub commands
2019-07-20 16:28:35 -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
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