Commit Graph

78 Commits

Author SHA1 Message Date
Anthony Sottile
d3883ce7f7 move languages.all and languages.helpers out of languages 2023-02-20 18:03:45 -05:00
Anthony Sottile
628c876b2d adjust the run_hook api to no longer take Hook 2023-01-16 16:34:01 -05:00
Anthony Sottile
ae34a962d7 make in_env part of the language api 2023-01-16 15:36:29 -05:00
Anthony Sottile
05c8911363 simplify environment_dir 2023-01-01 21:11:56 -05:00
Anthony Sottile
d05b7888ab move clean_path_on_failure out of each hook install 2023-01-01 20:04:58 -05:00
marsha
84b38f7b89 Change cmd_output_bs retcode arg to a boolean check 2022-10-30 14:49:42 -05:00
Anthony Sottile
07554e9525 add additional info to healthy-after-install check 2022-04-16 16:46:28 -04:00
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
7f9f66e542 don't use system for ruby/node if it is a shim exe 2020-10-28 16:52:55 -07:00
Anthony Sottile
29f3e67655 improve node install by using npm pack 2020-10-28 15:13:53 -07:00
Anthony Sottile
b149c7a344 fix for node healthy() when system executable moves 2020-09-07 13:23:02 -07:00
Anthony Sottile
6ec47ea736 fix node hooks when NPM_CONFIG_USERCONFIG is set 2020-06-19 13:58:14 -07:00
Anthony Sottile
3b728fdb76 yay french strings 2020-05-02 11:37:31 -07:00
Anthony Sottile
0f528544b5 Default to language_version: system if node and npm are installed 2020-04-07 20:31:42 -07:00
Anthony Sottile
67c1beb322 Use covdefaults to handle coveragerc 2020-02-29 14:25:19 -08:00
Anthony Sottile
fa8d022813 Remove unnecessary forward annotations 2020-02-07 08:32:39 -08:00
Anthony Sottile
755b8000f6 move Hook data type to a separate file 2020-01-15 14:20:51 -08:00
Anthony Sottile
df40e862f4 More miscellaneous cleanup 2020-01-13 11:47:34 -08:00
Anthony Sottile
5706b9149c deep listdir works in python3 on windows 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
327ed924a3 Add types to pre-commit 2020-01-12 10:15:01 -08:00
Anthony Sottile
30c1e8289f upgrade hooks, pyupgrade pre-commit 2020-01-12 09:27:04 -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
f612aeb22b Split out cmd_output_b 2019-10-06 15:16:47 -07:00
Anthony Sottile
8537e7c94e Simplify if statement slightly 2019-08-27 10:35:40 -07:00
Henry Tang
b0c7ae4d29 Fix NODE_PATH on win32 2019-08-28 00:03:04 +08:00
Anthony Sottile
9c6edab726 azure pipelines [skip travis] [skip appveyor] 2019-04-28 21:39:06 -07:00
Anthony Sottile
d71a75fea2 Run npm install before npm install -g 2019-03-14 18:31:57 -07:00
Anthony Sottile
3cb35e8679 Revert "Merge pull request #949 from asottile/npm_install_git"
This reverts commit a4c1a701bc, reversing
changes made to 889124b5ca.
2019-03-14 18:20:30 -07:00
Anthony Sottile
6088b1f995 3 slashes works around an npm bug
https://npm.community/t/npm-install-g-git-file-c-path-to-repository-does-not-work-on-windows/5453
2019-02-17 12:17:46 -08:00
Anthony Sottile
136834038d Use npm install git+file:// instead of npm install . 2019-02-17 10:14:21 -08:00
Anthony Sottile
d3b5a41830 Implement default_language_version 2019-01-05 13:15:23 -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
Anthony Sottile
6bac405d40 Minor cleanups 2018-11-01 18:05:36 -07:00
Chris Kuehl
ba5e27e4ec Implement concurrent execution of individual hooks 2018-10-24 16:16:10 -07:00
Anthony Sottile
2722e16fd8 Use --clean-src for nodeenv 2018-03-01 14:06:48 -08:00
Anthony Sottile
6e46d6ae75 Support node on windows with long path hack 2018-01-12 22:31:43 -08:00
Anthony Sottile
7d87da8acd Move PrefixedCommandRunner -> Prefix 2018-01-11 21:41:48 -08:00
Anthony Sottile
92f98088eb Whitespace fixup 2017-09-06 08:28:50 -07:00
Lucas Cimon
e465129bd4 NodeJS hooks compatibilty fix for Cygwin - take 2 2017-09-06 17:16:58 +02:00
Anthony Sottile
5f3e162646 Appease flake8 2017-08-04 08:31:06 -07:00
Cimon Lucas (LCM)
b22ee6b191 NodeJS hooks compatibilty fix for Cygwin 2017-08-04 10:48:21 +02:00
Anthony Sottile
cff98a634d Recover from invalid python virtualenvs 2017-07-20 10:57:09 -07:00
Anthony Sottile
d876661345 Use a more intelligent default language version 2017-07-08 21:11:48 -07:00
Anthony Sottile
b6937f33e2 Fixups to make appveyor happy 2017-01-16 18:50:49 -08:00
Anthony Sottile
6055af8bc8 Make shlex behaviour of entry more consistent 2017-01-05 11:52:29 -08: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