George Y. Kussumoto
bb6b1c33ae
Remove pytest-mock
2018-10-06 19:57:30 -03:00
George Y. Kussumoto
2ad69e12ce
Fix xargs.partition: use sys.getfilesystemencoding
...
The previous `sys.getdefaultencoding` almost always fallsback to
`ascii` while `sys.getfilesystemencoding` is utf-8 once in utf-8 mode.
2018-10-05 16:39:49 -03:00
George Y. Kussumoto
df5d171cd7
Fix xargs.partition tests in python2.7 (pytest-mock)
2018-10-05 14:33:32 -03:00
George Y. Kussumoto
fa4c03da65
Update xargs.partition with platform information
...
Change how xargs.partition computes the command length (including
arguments) depending on the plataform.
More specifically, 'win32' uses the amount of characters while posix
system uses the byte count.
2018-10-05 11:54:31 -03:00
Anthony Sottile
c0b1f2ff25
Merge pull request #837 from georgeyk/check-useless-excludes-type-filter
...
Fix `check-useless-exclude` to consider types filter
2018-10-02 11:43:01 -07:00
George Y. Kussumoto
1b496c5fc3
Fix check-useless-exclude to consider types filter
2018-10-02 12:17:46 -03:00
Anthony Sottile
08319101f4
v1.11.1
v1.11.1
2018-09-22 12:02:33 -07:00
Anthony Sottile
3e11c2d05d
Merge pull request #832 from pre-commit/rev_parse_error_mode
...
Fix rev-parse for older git versions
2018-09-22 11:59:56 -07:00
Anthony Sottile
18b6f4b519
Fix rev-parse for older git versions
2018-09-22 11:12:27 -07:00
Anthony Sottile
4b0a22a8ba
v1.11.0
v1.11.0
2018-09-02 19:57:09 -07:00
Anthony Sottile
a2bd0097c5
Merge pull request #821 from pre-commit/allow_language_fail_check_useless_excludes
...
Exempt `language: fail` hooks from check-hooks-apply
2018-09-02 19:49:01 -07:00
Anthony Sottile
ce25b652b9
Exempt language: fail hooks from check-hooks-apply
2018-09-02 18:54:34 -07:00
Anthony Sottile
21c2c9df33
No need for OrderedDict
2018-09-02 18:51:55 -07:00
Anthony Sottile
9d48766c02
git mv tests/meta_hooks/{,check_}useless_excludes_test.py
2018-09-02 18:39:11 -07:00
Anthony Sottile
cd116977cc
Merge pull request #819 from jeffreyrack/fix-windows-reporting
...
Don't print bogus characters on windows terminals that don't support colors
2018-08-30 20:10:02 -07:00
Jeffrey Rackauckas
710eef317a
Fixing tests to account for the new terminal_supports_color variable
2018-08-30 19:39:37 -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
a5ccc89748
Merge pull request #812 from pre-commit/language_fail
...
Add language: fail
2018-08-11 08:13:35 -07:00
Anthony Sottile
a6e2e1d4bb
Add language: fail
2018-08-10 18:11:28 -07:00
Anthony Sottile
cf691e85c8
that's what I get for not waiting for CI
2018-08-10 12:39:40 -07:00
Anthony Sottile
67bc05eb35
Merge pull request #811 from BoboTiG/fix-resources-warnings
...
Fix several ResourceWarning: unclosed file
2018-08-10 12:34:05 -07:00
Anthony Sottile
174d3bf057
Minor style adjustment
2018-08-10 12:33:21 -07:00
Anthony Sottile
a8640c759d
Add # pragma: no cover for the py3-only branch
2018-08-10 11:11:50 -07:00
Mickaël Schoentgen
d68a778e3b
Fix the use of deprecated inspect.getargspec() on Python 3
2018-08-10 18:30:22 +02:00
Mickaël Schoentgen
67d6fcb0f6
Fix several ResourceWarning: unclosed file
2018-08-10 18:30:22 +02:00
Mickaël Schoentgen
abee146199
Get rid of @pytest.mark.integration
2018-08-10 18:29:30 +02:00
Anthony Sottile
ff73f6f741
v1.10.5
v1.10.5
2018-08-06 14:03:01 -07:00
Anthony Sottile
2f0fefeb74
Merge pull request #809 from pre-commit/worktree
...
Support `pre-commit install` inside a worktree
2018-08-06 10:11:51 -07:00
Anthony Sottile
3f78487769
Support pre-commit install inside a worktree
2018-08-06 09:26:42 -07:00
Anthony Sottile
ab556f4dff
Merge pull request #805 from pre-commit/workaround_brew
...
Work around sys.executable issue using brew python on macos
2018-07-24 18:28:34 -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
Anthony Sottile
a3847d830c
A few changelog entries didn't get commited
2018-07-22 09:25:34 -07:00
Anthony Sottile
52f39fee12
v1.10.4
v1.10.4
2018-07-22 08:47:43 -07:00
Anthony Sottile
f2b74e3387
Merge pull request #803 from mblayman/args-hook-only
...
Run only the specified hook even when stages exist in config.
2018-07-19 21:13:24 -07:00
Matt Layman
fd1bc21d8e
Use parens instead of different logic pattern.
2018-07-19 23:27:29 -04:00
Matt Layman
a8b298799c
Check bytes for Python 3.
2018-07-19 22:11:15 -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
f2da2c435c
Merge pull request #801 from pre-commit/node_lives_again
...
Revert "Merge pull request #799 from pre-commit/temporarily_skip_npm_windows"
2018-07-18 19:07:02 -07:00
Anthony Sottile
4f419fdaab
Revert "Merge pull request #799 from pre-commit/temporarily_skip_npm_windows"
...
This reverts commit 063014ffd8 , reversing
changes made to 259ef9e530 .
2018-07-18 15:25:48 -07: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
550ce26e75
Merge pull request #796 from pre-commit/buffering
...
Fix buffering in --show-diff-on-failure
2018-07-17 19:37:49 -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
df1b720054
Merge pull request #800 from pre-commit/revert_cargo_cache_appveyor
...
Revert "Merge pull request #788 from pre-commit/cache_cargo_windows"
2018-07-17 18:23:52 -07:00
Anthony Sottile
7d4db5c523
Revert "Merge pull request #788 from pre-commit/cache_cargo_windows"
...
This reverts commit e731aa835c , reversing
changes made to a4b5a9f7fb .
2018-07-17 18:23:08 -07:00
Anthony Sottile
063014ffd8
Merge pull request #799 from pre-commit/temporarily_skip_npm_windows
...
Temporarily xfail node on windows
2018-07-17 18:22:37 -07:00