Anthony Sottile
f9fbe18abf
Fix pre-commit install on subst drives
2021-02-23 18:52:24 -08:00
Anthony Sottile
f75fc6b2a8
fix execution in worktrees in subdirectories of bare repositories
2021-01-27 10:08:48 -08:00
Anthony Sottile
91530f1005
check cygwin mismatch earlier
2020-09-20 10:42:11 -07:00
Greg Singer
1b435f1f1f
add init-templatedir --no-allow-missing-config
...
Add a `--no-allow-missing-config` option to the `init-templatedir`
command. Enable configuration of a Git template that requires newly
cloned repos to have a `pre-commit` config.
2020-07-20 19:02:35 -07:00
Anthony Sottile
95b8d71bd9
Move most of the actual hook script into pre-commit hook-impl
2020-01-21 16:41:22 -08:00
Anthony Sottile
327ed924a3
Add types to pre-commit
2020-01-12 10:15:01 -08:00
Anthony Sottile
fa536a8693
mypy passes with check_untyped_defs
2020-01-12 09:27:04 -08:00
Anthony Sottile
ab19b94811
some manual py2 cleanups
2020-01-12 09:27:04 -08:00
Anthony Sottile
30c1e8289f
upgrade hooks, pyupgrade pre-commit
2020-01-12 09:27:04 -08:00
Anthony Sottile
ae97bb5068
Remove autoupdate --tags-only option
2020-01-05 14:04:41 -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
marqueewinq
de63b6a850
updated import style; put the version info on top of error message; fixed tests
2019-09-24 13:34:46 +03:00
marqueewinq
247d45af05
fixed #1141
2019-09-20 15:05:51 +03:00
Anthony Sottile
9a52eefc99
Implement pre-commit init-templatedir
2019-07-20 20:33:42 -07: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
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
29033f10ca
Move cwd() to tests-only
2018-02-24 16:44:59 -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
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
9ff6818270
Merge pull request #602 from pre-commit/xdg_cache_dir
...
Adhere to XDG specification for cache dir.
2017-09-07 08:19:45 -07:00
Anthony Sottile
8f5675d813
Implement pre-commit migrate-config
2017-09-06 10:07:55 -07:00
Anthony Sottile
0120af56a7
Adhere to XDG specification for cache dir.
2017-09-06 10:00:35 -07:00
Anthony Sottile
a9e1940f7e
Use SystemExit instead of PreCommitSystemExit
2017-09-04 13:42:19 -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
Anthony Sottile
f238495d6b
Add an install-hooks command (similar to install --install-hooks). Resolves #456
2017-01-04 07:52:16 -08:00
Anthony Sottile
4e0f73bbf3
Add cygwin check after initialization. Resolves #437
2016-11-26 15:16:55 -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
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
90648bc9ec
Add tests for main.
2014-07-03 19:19:55 -07:00