George Y. Kussumoto
1b496c5fc3
Fix check-useless-exclude to consider types filter
2018-10-02 12:17:46 -03:00
Anthony Sottile
18b6f4b519
Fix rev-parse for older git versions
2018-09-22 11:12:27 -07:00
Anthony Sottile
ce25b652b9
Exempt language: fail hooks from check-hooks-apply
2018-09-02 18:54:34 -07:00
Jeffrey Rackauckas
3d777bb386
Move logic to handle terminal not supporting colors to use_color
2018-08-30 19:15:46 -07:00
Jeffrey Rackauckas
a970d3b69b
Removing useless pass statement.
2018-08-30 18:45:29 -07:00
Jeffrey Rackauckas
1bd6fce7dc
Don't print bogus characters on windows terminals that don't support colors.
2018-08-29 18:54:55 -07:00
Anthony Sottile
f042e302d8
Merge pull request #815 from pre-commit/update_config
...
Update config
2018-08-16 07:44:27 -07:00
Anthony Sottile
72d10903d5
Update config
2018-08-15 17:55:06 -07:00
Anthony Sottile
a6e2e1d4bb
Add language: fail
2018-08-10 18:11:28 -07:00
Mickaël Schoentgen
67d6fcb0f6
Fix several ResourceWarning: unclosed file
2018-08-10 18:30:22 +02:00
Anthony Sottile
3f78487769
Support pre-commit install inside a worktree
2018-08-06 09:26:42 -07:00
Anthony Sottile
7e69d117c6
Work around sys.executable issue using brew python on macos
...
https://github.com/Homebrew/homebrew-core/issues/30445
2018-07-24 16:05:26 -07:00
Matt Layman
fd1bc21d8e
Use parens instead of different logic pattern.
2018-07-19 23:27:29 -04:00
Matt Layman
4640dc7b4a
Run only the specified hook even when stages exist in config.
...
This branches fixes the run logic so that when
`pre-commit run some_hook -a` runs when the config contains
`stages: ['commit']` for some other hook, only the hook specified as an
argument will run.
Fixes #772
2018-07-19 21:45:43 -04:00
Anthony Sottile
99972df1da
Merge pull request #797 from pre-commit/default_python_3_venv
...
Default to python3 when using python_venv under python 2
2018-07-17 20:20:54 -07:00
Anthony Sottile
0eaacd7c8e
Default to python3 when using python_venv under python 2
2018-07-17 18:24:29 -07:00
Anthony Sottile
c947a0935d
Fix buffering in --show-diff-on-failure
2018-07-17 18:24:16 -07:00
Anthony Sottile
bffa58753d
hook paths are only computed in install_uninstall
2018-07-05 12:49:01 -07:00
Anthony Sottile
45d299d1db
Merge pull request #785 from pre-commit/better_trace
...
Improve not found error with script paths (`./exe`)
2018-07-04 15:51:48 -07:00
Anthony Sottile
c2e4040756
Improve not found error with script paths (./exe)
2018-07-04 14:55:00 -07:00
Anthony Sottile
c3e438379a
Appease yaml.load linters
...
_technically_ yaml.load is unsafe, however the contents being loaded here are
previously loaded just above using a safe loader so this is not an abitrary
code vector. Fixing it nonetheless :)
2018-07-03 05:12:36 -07:00
Anthony Sottile
c294be513d
Fix force-push without fetch
2018-07-02 09:59:23 -07:00
Anthony Sottile
b87c4fd8cc
Remove more properties from Runner
2018-07-01 19:49:15 -07: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
5b6a5abae9
Consistent ordering of filenames
2018-06-11 12:49:45 -07:00
Anthony Sottile
805a2921ad
Invoke -mvenv with the original python if in a -mvirtualenv venv
2018-05-28 15:14:17 -07:00
Chris Kuehl
5ac2ba0f7b
Make local hooks work
2018-05-24 19:42:58 -07:00
Chris Kuehl
b4edf2ce50
Add tests for Rust
2018-05-22 21:52:34 -07:00
Chris Kuehl
2a37fcd3fe
Add support for Rust CLI dependencies
...
Also consistently build the hook using `cargo install`.
2018-05-22 21:20:13 -07:00
Chris Kuehl
7f85da1b9d
Add Rust support
2018-05-22 21:20:13 -07:00
Anthony Sottile
9a559cd764
Merge pull request #739 from ojii/language-python-venv
...
added python venv language
2018-05-12 12:30:37 -07:00
Anthony Sottile
b5af5a5b27
Add test for python_venv language
2018-05-12 11:37:13 -07:00
Anthony Sottile
cd8179a974
Apply relative files to try-repo also
2018-05-12 10:01:14 -07:00
Anthony Sottile
e8954e2bf3
Simplify python_venv interface
2018-05-12 09:28:49 -07:00
Anthony Sottile
e55f51fb14
Remove unused __popen DI
2018-05-02 11:25:16 -04:00
Jonas Obrist
d6825fa0fc
added python venv language
2018-04-27 17:13:47 +09:00
Anthony Sottile
af93bec4fd
Fix regression: try-repo from relative path
2018-03-17 20:02:06 -07:00
Anthony Sottile
96e9d1b758
Restore git 1.8 support
2018-03-12 14:36:07 -07:00
Anthony Sottile
65f001b007
Fix go 1.10: no pkg dir
2018-03-12 14:02:34 -07:00
Anthony Sottile
c6b6d2340e
Merge pull request #716 from tdeo/multiline_pygrep
...
Add multiline mode to pygrep
2018-03-09 09:39:09 -08:00
Thierry Deo
55ef3ce960
Address review comments
2018-03-09 09:22:34 +01:00
Thierry Deo
55c74c10d9
Rename option to and improve output
2018-03-08 09:42:32 +01:00
Anthony Sottile
bf5792eb10
Add a manual stage for cli-only interaction
2018-03-07 12:41:25 -08:00
Thierry Deo
19075371fa
Pre-commit compliance
2018-03-07 09:35:08 +01:00
Thierry Deo
25c06e6525
Remove encoding dependence
2018-03-07 09:24:56 +01:00
Anthony Sottile
f679983012
Refuse to install with core.hooksPath set
2018-03-03 15:24:14 -08:00
Anthony Sottile
2722e16fd8
Use --clean-src for nodeenv
2018-03-01 14:06:48 -08:00
Thierry Deo
3793bc32c0
Fix linters
2018-02-26 15:46:33 +01:00