Anthony Sottile
435d9945a3
Switch from deprecated docs-off args to --no-document
2018-12-19 14:22:09 -08:00
Anthony Sottile
c292ba892b
Merge pull request #885 from s0undt3ch/hotfix/no-gpg-sign
...
Don't fail if GPG signing is configured by default
2018-12-14 16:25:50 -05:00
Anthony Sottile
15b1f118b5
Update fixtures.py
2018-12-14 13:14:13 -08:00
Pedro Algarvio
afeac2f099
Don't fail if GPG signing is configured by default
2018-12-14 11:45:01 +00:00
Anthony Sottile
51659ee606
Merge pull request #874 from chriskuehl/shuffle-args
...
Shuffle arguments before running hooks
2018-11-19 23:00:36 -08:00
Chris Kuehl
45e3dab00d
Shuffle arguments before running hooks
2018-11-19 17:53:19 -08:00
Anthony Sottile
6b6ebe7e30
Merge pull request #870 from pre-commit/bump_sample
...
Upgrade the sample config
2018-11-15 16:19:22 -08:00
Anthony Sottile
e15d7cde86
Upgrade the sample config
2018-11-15 14:17:10 -08:00
Anthony Sottile
dc84f21dd4
Merge pull request #857 from runz0rd/master
...
Reraises InvalidManifestError as RepositoryCannotBeUpdatedError
2018-11-14 17:29:43 -08:00
Anthony Sottile
aaa3976a29
Use text_type instead of str()
2018-11-13 17:23:32 -08:00
Milos Pejanovic
e339de22d7
Added requested changes
2018-11-14 01:59:18 +01:00
Milos Pejanovic
bf8c8521cd
Added a test and small change for error output
2018-11-14 00:43:04 +01:00
Anthony Sottile
76e0f11916
Merge pull request #851 from chriskuehl/concurrent-execution
...
Implement concurrent execution of individual hooks
2018-11-01 18:46:13 -07:00
Anthony Sottile
6bac405d40
Minor cleanups
2018-11-01 18:05:36 -07:00
Milos Pejanovic
1c97d3f5fd
Added a try except block which reraises InvalidManifestError as RepositoryCannotBeUpdatedError
2018-10-31 17:39:47 +01:00
Chris Kuehl
9125439c3a
Force serial hook runs during tests
2018-10-24 16:33:06 -07:00
Chris Kuehl
aa50a8cde0
Switch to using concurrent.futures
2018-10-24 16:33:06 -07:00
Chris Kuehl
231f6013bb
Allow more time on the concurrency test
...
Spawning processes is apparently really slow on Windows, and the test is
occasionally taking slightly more than a second on AppVeyor. I think we
can allow up to the full 2.5 seconds without losing the valuable bits of
the test.
2018-10-24 16:33:06 -07:00
Chris Kuehl
b6926e8e2e
Attempt to partition files to use all possible cores
2018-10-24 16:33:06 -07:00
Chris Kuehl
ec0ed8aef5
Handle CPU detection errors and running on Travis
2018-10-24 16:16:13 -07:00
Chris Kuehl
ba5e27e4ec
Implement concurrent execution of individual hooks
2018-10-24 16:16:10 -07:00
Anthony Sottile
1f1cd2bc39
Merge pull request #839 from georgeyk/refactor-xargs-partition
...
Update xargs.partition with platform information
2018-10-23 22:55:30 -07:00
Anthony Sottile
ead906aed0
Compute win32 python2 length according to encoded size
2018-10-23 22:02:48 -07:00
Anthony Sottile
eecf3472ff
v1.12.0
v1.12.0
2018-10-23 10:55:09 -07:00
Anthony Sottile
0c9a53bf1b
Correct resources declaration
2018-10-23 10:50:35 -07:00
Anthony Sottile
47e4f39436
Merge pull request #852 from pre-commit/install_only_once
...
Install multi-hook repositories only once
2018-10-23 10:47:22 -07:00
Anthony Sottile
6cde287a1e
Install multi-hook repositories only once
2018-10-23 10:28:37 -07:00
Anthony Sottile
fcdd638134
Merge pull request #847 from pre-commit/improve_coverage
...
Improve coverage of check_hooks_apply
2018-10-14 16:28:32 -07:00
Anthony Sottile
f19bf57afc
Merge pull request #846 from pre-commit/performance
...
Improve performance by factoring out pkg_resources
2018-10-14 15:32:18 -07:00
Anthony Sottile
8e8b962266
Improve coverage of check_hooks_apply
2018-10-14 15:00:57 -07:00
Anthony Sottile
62493d1115
Exclude coverage in the template file
2018-10-14 14:37:36 -07:00
Anthony Sottile
9f60561d6f
Replace resources with importlib_resources
2018-10-14 14:37:35 -07:00
Anthony Sottile
ebe5132576
Replace pkg_resources.get_distribution with importlib-metadata
2018-10-14 12:24:59 -07:00
Anthony Sottile
14df93ef3e
Merge pull request #845 from pre-commit/all-repos_autofix_pre-commit-autopep8-migrate
...
Migrate from autopep8-wrapper to mirrors-autopep8
2018-10-12 21:49:22 -07:00
Anthony Sottile
3dbb61d9af
Migrate from autopep8-wrapper to mirrors-autopep8
...
Committed via https://github.com/asottile/all-repos
2018-10-12 20:08:47 -07:00
Anthony Sottile
9c37473256
v1.11.2
v1.11.2
2018-10-10 20:43:57 -07:00
Anthony Sottile
9bcfe176d4
Merge pull request #844 from pre-commit/pre_push_ancestor_identification
...
fix pushing to new branch not identifying all commits
2018-10-10 20:41:46 -07:00
Anthony Sottile
3181b461aa
fix pushing to new branch not identifying all commits
2018-10-10 20:08:16 -07:00
George Y. Kussumoto
3d573d8736
Fix xargs.partion: win32 test
2018-10-09 23:32:46 -03:00
George Y. Kussumoto
c9e297ddb6
Fix xargs.partition: win32 new string length computation
2018-10-09 22:54:41 -03:00
George Y. Kussumoto
2560280d21
Fix xargs.partition tests: explicity set unicode chars
2018-10-08 19:42:59 -03:00
George Y. Kussumoto
333ea75e45
Refactor xargs.partition: _command_length usage
2018-10-06 20:04:17 -03:00
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