Anthony Sottile
04de6a2e57
drop python 3.6 support
...
python 3.6 reached end of life on 2021-12-23
2022-01-18 18:44:20 -05:00
Anthony Sottile
bba6cf4296
Revert "work around python/mypy#11852"
...
This reverts commit 83675fe768 .
2022-01-10 15:35:33 -05:00
Anthony Sottile
83675fe768
work around python/mypy#11852
2021-12-27 18:32:56 -05:00
Anthony Sottile
14f984fbcf
improve xargs when running windows batch files
2020-11-06 13:09:01 -08:00
Anthony Sottile
365f896c36
fix a few spelling errors
...
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
2020-09-20 19:21:24 -07:00
Anthony Sottile
327ed924a3
Add types to pre-commit
2020-01-12 10:15:01 -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
97e3371046
Remove deprecated pcre language
2020-01-05 13:58:44 -08:00
Anthony Sottile
01a628d96d
Make verbose output less special
2019-12-23 15:51:58 -08:00
Anthony Sottile
7c3404ef1f
show color in hook outputs when attached to a tty
2019-10-12 23:17:36 -07:00
Anthony Sottile
2633d38a63
Fix ordering of mixed stdout / stderr printing
2019-10-12 13:35:04 -07:00
Anthony Sottile
9c6edab726
azure pipelines [skip travis] [skip appveyor]
2019-04-28 21:39:06 -07:00
DanielChabrowski
c7b369a7be
Add test for xargs propagating kwargs to cmd_output
2019-03-19 20:36:21 +01:00
Anthony Sottile
985f09ff88
Compute the maximum command length more accurately
2019-03-10 11:14:22 -07:00
Anthony Sottile
d3b5a41830
Implement default_language_version
2019-01-05 13:15:23 -08: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
ba5e27e4ec
Implement concurrent execution of individual hooks
2018-10-24 16:16:10 -07:00
Anthony Sottile
ead906aed0
Compute win32 python2 length according to encoded size
2018-10-23 22:02:48 -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
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
a157e1a63f
xargs returns nonzero for negate + not found exe (fixes pcre + not found #447 )
2016-12-04 15:07:35 -08: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