Commit Graph

65 Commits

Author SHA1 Message Date
Anthony Sottile
df40e862f4 More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
Anthony Sottile
5e52a657df Remove unused ruby activate script 2020-01-12 13:39:53 -08:00
Anthony Sottile
9000e9dd41 Some manual .format() -> f-strings 2020-01-12 13:39:53 -08:00
Anthony Sottile
4eea90c26c leverage mypy to check language implementations 2020-01-12 10:15:02 -08:00
Anthony Sottile
327ed924a3 Add types to pre-commit 2020-01-12 10:15:01 -08:00
Anthony Sottile
fa536a8693 mypy passes with check_untyped_defs 2020-01-12 09:27:04 -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
b90412742e A few cleanups for CalledProcessError to hopefully make it more readable 2019-12-23 17:46:48 -08:00
Anthony Sottile
f6b0c135ce Create an actual environment for python healthy() types test 2019-12-06 13:31:08 -08:00
Anthony Sottile
bfcee8ec9f Fix python.healthy() check with stdlib module clashes 2019-10-22 13:23:57 -07:00
Anthony Sottile
7c3404ef1f show color in hook outputs when attached to a tty 2019-10-12 23:17:36 -07:00
Anthony Sottile
f612aeb22b Split out cmd_output_b 2019-10-06 15:16:47 -07:00
Ville Skyttä
f84b19748d Patch the correct find_executable 2019-08-15 19:28:07 +03:00
Ville Skyttä
562276098c Address more @asottile's review comments 2019-08-15 18:54:08 +03:00
Ville Skyttä
38da98d2d6 Address @asottile's review comments 2019-08-15 18:43:31 +03:00
Ville Skyttä
c377830898 Mock find_executable for find_by_sys_executable test 2019-08-15 18:34:25 +03:00
Ville Skyttä
fa2e154b41 Stabilize python default version lookup
For example, for sys.executable:
    /usr/bin/python3 -> python3.7
...the default lookup may return either python3 or python3.7. Make the
order deterministic by iterating over tuple, not set, of candidates.
2019-08-15 10:06:31 +03:00
Edgar Geier
d4a9ff4d1f Simplify docker user fallback implementation and test 2019-07-25 11:22:59 +02:00
Edgar Geier
a21a4f46c7 Fix missing create=True attribute in docker tests 2019-07-23 15:35:19 +02:00
Edgar Geier
b43b6a61ab Add docker uid and gid fallback tests 2019-07-23 15:14:06 +02:00
Anthony Sottile
dc28922ccb Run pre-commit autoupdate
Committed via https://github.com/asottile/all-repos
2019-03-21 21:09:33 -07:00
Anthony Sottile
32d65236bf Use sys.executable if it matches the requested version 2019-01-10 06:48:49 -08:00
Anthony Sottile
d3b5a41830 Implement default_language_version 2019-01-05 13:15:23 -08:00
Anthony Sottile
4f9d0397b5 Add more 'no cover windows' comments 2018-12-31 14:06:10 -08:00
Anthony Sottile
b59d7197ff Use Hook api in languages 2018-12-31 13:16:48 -08:00
Anthony Sottile
2af0b0b4f3 better no-cover for windows 2018-12-27 18:25:52 -08:00
Chris Kuehl
45e3dab00d Shuffle arguments before running hooks 2018-11-19 17:53:19 -08:00
Chris Kuehl
9125439c3a Force serial hook runs during tests 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
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
Anthony Sottile
f88e007f52 Fix test since pip 10 changed output 2018-05-21 21:38:36 -07:00
Thierry Deo
55c74c10d9 Rename option to and improve output 2018-03-08 09:42:32 +01:00
Thierry Deo
25c06e6525 Remove encoding dependence 2018-03-07 09:24:56 +01:00
Thierry Deo
3793bc32c0 Fix linters 2018-02-26 15:46:33 +01:00
Thierry Deo
69333fa227 Add multiline mode to pygrep 2018-02-26 10:17:21 +01:00
Anthony Sottile
7d87da8acd Move PrefixedCommandRunner -> Prefix 2018-01-11 21:41:48 -08:00
Anthony Sottile
e9509306d8 Implement pygrep language as a replacement for pcre 2017-09-22 22:31:30 -07:00
Anthony Sottile
989bcfe9ca Use file:// protocol for cloning under test 2017-09-22 10:38:19 -07:00
Anthony Sottile
cff98a634d Recover from invalid python virtualenvs 2017-07-20 10:57:09 -07:00
Anthony Sottile
0c70fa4229 Use asottile/add-trailing-comma 2017-07-12 18:30:51 -07:00
Anthony Sottile
d876661345 Use a more intelligent default language version 2017-07-08 21:11:48 -07:00
Anthony Sottile
068c18d38a Add first class support for golang hooks 2017-01-24 13:49:22 -08:00
Ben Picolo
08b379bf45 Coverage complete 2017-01-04 13:16:32 -05:00
Anthony Sottile
b81c9802ae Remove py26 format literals
Resolves #403
2016-09-15 08:41:58 -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
248930f6dc Fix appveyor and windows. Resolves #293 2015-11-23 22:28:57 -08:00
Tobias Macey
06b3d91da0 Added the additional_dependencies config parameter
Added the ability to specify additional dependencies to be installed in
the pre-commit environment. Fixed broken tests.
2015-11-19 12:29:41 -05:00