Commit Graph

317 Commits

Author SHA1 Message Date
Anthony Sottile
0dda19f691 Reorganize output writing 2016-11-26 12:15:55 -08:00
Anthony Sottile
5ace43765b Allow virtualenv creation with strange setup.cfg. Resolves #425 2016-11-07 11:09:32 -08:00
Anthony Sottile
8bcf24e5d5 Merge pull request #421 from pre-commit/py26_cleanup
shlex.split works in py27+
2016-10-23 17:31:15 -07:00
Anthony Sottile
c4c02f71a6 Merge pull request #420 from pre-commit/stdlib_venv_strikes_again
Fix virtualenv-inside-venv on osx.  Resolves #419
2016-10-23 17:00:24 -07:00
Anthony Sottile
cce59d7957 shlex.split works in py27+ 2016-10-23 16:55:16 -07:00
Anthony Sottile
e832ddc57f Merge pull request #408 from pre-commit/no_pyterminalsize
Use 80 or min width instead of terminal size
2016-10-23 16:48:53 -07:00
Anthony Sottile
d5ebea31d7 Fix virtualenv-inside-venv on osx. Resolves #419 2016-10-23 16:43:34 -07:00
Anthony Sottile
b81c9802ae Remove py26 format literals
Resolves #403
2016-09-15 08:41:58 -07:00
Sebastien Chemin
5206ce2448 Fix file stashing with external diff tool
When git is configured to use an external diff tool to show diffs
(eg. 'git config diff.external mytool'), the stashing unstaged files
will create an empty file that can't be recovered.

Some modifications are permanently lost...

Just disable the ext-diff of git diff to avoid any issue.

Change-Id: I10a57ac2acbcb1f7219455f1958efd50d8452d6a
2016-09-09 16:36:32 +02:00
Anthony Sottile
9c6484b94f Merge pull request #407 from pre-commit/nopy26_tarfile_open
Remove tarfile_open (tarfile open in 2.7+)
2016-08-31 17:24:29 -07:00
Anthony Sottile
a677c42e21 Use 80 or min width instead of terminal size 2016-08-31 17:15:52 -07:00
Anthony Sottile
57cc50e0ad Remove tarfile_open (tarfile open in 2.7+) 2016-08-31 16:24:30 -07:00
Anthony Sottile
5961a8e5f1 Use super() ('newstyle class' in 2.7+) 2016-08-31 16:20:55 -07:00
Anthony Sottile
b05cc4077e Fix staged-files-only with a non-utf8-trailing-whitespace diff. Resolves #397 2016-08-18 07:37:33 -07:00
Sander Maijers
1d4a332e04 Clarify/correct error message
The error also occurs if the `git` utility isn't available.
2016-08-16 15:47:17 +02:00
Anthony Sottile
5547db93ef Clarify language around missing hooks. Resolves #386 2016-06-25 08:14:58 -07:00
Anthony Sottile
758faa4ae7 Autoupdate to tags when available 2016-06-23 08:29:33 -07:00
Anthony Sottile
d845ec6e36 Merge pull request #375 from vinayinvicible/master
only consider forward diff in changed files
2016-06-01 10:17:21 -07:00
Anthony Sottile
db97cf3329 Don't run on deleted files. Resolves #374 2016-05-25 08:42:02 -07:00
vinay karanam
81d7efa7bb only consider forward diff in changed files 2016-05-25 14:44:59 +05:30
Anthony Sottile
efe33ffe5c We're not using pylint 2016-05-20 16:14:18 -07:00
Anthony Sottile
efda3cdcd0 Merge pull request #372 from pre-commit/dont_crash_on_not_found_exe
Don't crash when an executable is not found
2016-05-20 15:03:53 -07:00
Anthony Sottile
5a6b6e81e9 Don't crash when an executable is not found 2016-05-20 13:32:33 -07:00
Anthony Sottile
e77bb8f3c3 Fix already using rbenv + default ruby. Resolves #369. 2016-05-17 08:23:21 -07:00
trbs
8f73b321f5 reorder imports 2016-05-10 17:40:11 +02:00
trbs
9c64ce2caf Set up logging handler in autoupdate 2016-05-10 13:47:06 +02:00
Anthony Sottile
82369fd99f Add utility for parsing shebangs and resolving PATH 2016-04-03 22:54:46 -07:00
Anthony Sottile
a932315a15 Implement 'negate' to simplify pcre 2016-03-25 11:21:50 -07:00
Anthony Sottile
b7d395410b Implement a simplified xargs in python 2016-03-25 11:21:50 -07:00
Anthony Sottile
a5b56bd9e3 Factor out bash and activate files 2016-03-25 11:21:50 -07:00
Anthony Sottile
00a3a9a09b Add envcontext helper 2016-03-25 11:21:50 -07:00
Anthony Sottile
f3802e7944 Add a missing no-cover to increase coverage under py3 2016-03-21 15:21:22 -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
Anthony Sottile
710c24b868 Use pyterminalsize for terminal sizing 2016-02-21 21:07:08 -08:00
Anthony Sottile
a9498d28a7 Fall back to tput when terminal size information is missing 2016-02-20 22:15:23 -08:00
Anthony Sottile
4f6e4aedee Support terminal width on windows. Resolves #199 2016-02-20 20:55:39 -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
d58b945107 Fix pre-commit for latest virtualenv. Resolves #299. Resolves #334 2016-01-19 18:08:20 -08:00
Benjamin Chess
a70abd04e7 include checking symlinks 2016-01-15 12:50:04 -08:00
Anthony Sottile
2aaaddb5cc Fail gracefully on undecodable install output. 2016-01-12 10:08:59 -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
a488424501 Use python3.5 in appveyor over py34 2015-12-22 14:40:30 -08:00
Laurent Sigal
a72ca3d68e Less blocking logic 2015-12-22 19:06:31 +00:00
Laurent Sigal
5a08204b8d Allow to simply run a script once - no matter what the changes are 2015-12-22 18:12:08 +00:00
Anthony Sottile
c3c98afe4f Support pre-commit from inside submodules 2015-12-18 15:35:44 -08:00
Anthony Sottile
3f02a66e37 Use rev-parse --show-toplevel 2015-12-18 08:04:26 -08:00
Anthony Sottile
b85a674026 Make additional_dependencies rollforward safe 2015-12-10 12:21:03 -08:00