1382 Commits

Author SHA1 Message Date
Anthony Sottile
aa4bc9d241 v1.14.4 v1.14.4 2019-02-18 09:13:54 -08:00
Anthony Sottile
35dd1907b6 Merge pull request #944 from minrk/respect-git-exec-path
don't unset GIT_EXEC_PATH
2019-02-18 08:14:34 -08:00
Anthony Sottile
a4c1a701bc Merge pull request #949 from asottile/npm_install_git
Use npm install git+file:// instead of npm install .
2019-02-17 15:51:53 -05: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
Min RK
9cde231665 respect GIT_EXEC_PATH env
This env may be required for git to work,
unsetting it can cause clone to fail

occurs with bundled git, e.g. Fork git client
2019-02-16 09:14:11 +01:00
Anthony Sottile
889124b5ca Merge pull request #948 from firba1/bariteau/add_git_ssh_command_support
pass GIT_SSH_COMMAND to git commands
2019-02-15 18:30:03 -05:00
Benjamin Bariteau
db04d612e0 pass GIT_SSH_COMMAND to git commands, refs #947 2019-02-15 14:37:53 -08:00
Anthony Sottile
2fa0fabb05 v1.14.3 v1.14.3 2019-02-04 08:43:31 -08:00
Anthony Sottile
f3b4565e8c Merge pull request #936 from asottile/require_new_virtualenv
Require new virtualenv
2019-02-03 14:29:34 -08:00
Anthony Sottile
728349bc4b Require new virtualenv
I'd like to start using metadata-based setup (`setup.cfg`) and this is the
minimum virtualenv version needed to build those.
2019-02-03 14:01:28 -08:00
Anthony Sottile
7e2ad215c2 Merge pull request #933 from jessebona/patch-1
Fix crash on `pre-commit migrate-config` when configuration is empty
2019-02-01 17:31:38 -08:00
Anthony Sottile
1a3d296d87 Trailing whitespace too
Github editor is a fickle beast
2019-02-01 16:47:08 -08:00
Jesse Bona
e2ee95d9b2 Update migrate_config_test.py
Added second blank line between test_migrate_config_sha_to_rev and test_empty_configuration_file_user_error
2019-02-02 11:32:09 +11:00
Jesse Bona
8a7142d763 Added test for blank configuration file 2019-02-02 10:38:04 +11:00
Jesse Bona
f2be2ead35 Update migrate_config.py
Corrected loop condition to not run if configuration file only contains new lines.
2019-02-02 10:34:53 +11:00
Jesse Bona
7b491c7110 Update migrate_config.py
Added if statement to prevent looping through header lines if configuration file is empty
2019-02-01 19:15:59 +11:00
Anthony Sottile
35a78c06d0 Merge pull request #928 from pre-commit/all-repos_autofix_pre-commit-flake8-migrate
Migrate to official pycqa/flake8 hooks repo
2019-01-30 00:55:15 -08:00
Anthony Sottile
29460606b2 Migrate to official pycqa/flake8 hooks repo
Committed via https://github.com/asottile/all-repos
2019-01-30 00:39:01 -08:00
Anthony Sottile
b268b37482 Merge pull request #927 from pre-commit/all-repos_autofix_all-repos-sed
Add W504 to ignored autopep8 rules
2019-01-29 22:20:22 -08:00
Anthony Sottile
1f3c6ce035 Add W504 to ignored autopep8 rules
Committed via https://github.com/asottile/all-repos
2019-01-29 22:09:47 -08:00
Anthony Sottile
160238220f Merge pull request #924 from ashanbrown/unset-gobin
Ensure that GOBIN is unset when installing a golang hook
2019-01-27 18:18:06 -08:00
Andrew S. Brown
1eed1b51b8 Address PR feedback 2019-01-27 17:55:11 -08:00
Andrew S. Brown
950bc2c7fb Shorten line 2019-01-27 14:02:53 -08:00
Andrew S. Brown
fe5390c068 Ensure that GOBIN is not set when installing a golang hook
If GOBIN is set, it will be used as the install path instead of the first item
from GOPATH followed by "/bin".  If it is used, commands will not be isolated
between different repos.
2019-01-27 13:34:47 -08:00
Anthony Sottile
6bc7b91dd1 Merge pull request #921 from pre-commit/speed_up_filenames_filtering
Speed up filename filtering.
2019-01-24 08:00:18 -08:00
Anthony Sottile
b1389603e0 Speed up filename filtering.
Before there was a `getcwd` syscall for every filename which was filtered.

Instead this is now cached per-run.

- When all files are identified by filename only: ~45% improvement
- When no files are identified by filename only: ~55% improvement

This makes little difference to overall execution, the bigger win is
eliminating the `memoize_by_cwd` hack.  Just removing the memoization would
have *increased* the runtime by 300-500%.
2019-01-23 20:48:41 -08:00
Anthony Sottile
38308dc02d Merge pull request #919 from asottile/node_fixed
Revert "Merge pull request #888 from pre-commit/887_xfail_windows_node_again"
2019-01-20 23:00:29 -08:00
Anthony Sottile
ea58596a56 Revert "Merge pull request #888 from pre-commit/887_xfail_windows_node_again"
This reverts commit 45a34d6b75, reversing
changes made to d0c62aae7a.
2019-01-20 22:22:39 -08:00
Anthony Sottile
570d629a14 Merge pull request #916 from pre-commit/asottile-patch-1
Fix non-parallel option changelog entry
2019-01-11 08:20:01 -08:00
Anthony Sottile
9898b490df Fix non-parallel option changelog entry 2019-01-11 07:39:51 -08:00
Anthony Sottile
90cfe677bc v1.14.2 v1.14.2 2019-01-10 16:04:07 -08:00
Anthony Sottile
4621859936 Merge pull request #915 from pre-commit/defpath
Be more timid about choosing a shebang
2019-01-10 15:21:38 -08:00
Anthony Sottile
4f8a9580aa Be more timid about choosing a shebang 2019-01-10 14:26:55 -08:00
Anthony Sottile
cc1af1da06 v1.14.1 v1.14.1 2019-01-10 10:21:36 -08:00
Anthony Sottile
f1f299c4b8 Merge pull request #914 from pre-commit/self_exe_python
Use sys.executable if it matches the requested version
2019-01-10 09:44:47 -08:00
Anthony Sottile
32d65236bf Use sys.executable if it matches the requested version 2019-01-10 06:48:49 -08:00
Anthony Sottile
1cf4b54cba v1.14.0 v1.14.0 2019-01-08 10:57:44 -08:00
Anthony Sottile
84c398d6f4 Merge pull request #912 from asottile/intent_to_add
Fix staged-files-only for `git add --intent-to-add` files
2019-01-08 10:36:00 -08:00
Anthony Sottile
e60579d9f3 Fix staged-files-only for git add --intent-to-add files 2019-01-08 09:28:57 -08:00
Anthony Sottile
2941a1142b Merge pull request #911 from asottile/bump_cfgv
bump cfgv, forgot in last PR
2019-01-07 08:15:42 -08:00
Anthony Sottile
8432d9b692 bump cfgv, forgot in last PR 2019-01-07 07:38:16 -08:00
Anthony Sottile
a2b536030a Merge pull request #910 from asottile/cleanup_tests
small cleanups in tests
2019-01-06 12:59:13 -08:00
Anthony Sottile
bea33af310 small cleanups in tests 2019-01-06 12:08:52 -08:00
Anthony Sottile
782244a7b8 Merge pull request #909 from asottile/default_stages
Implement default_stages
2019-01-06 11:29:41 -08:00
Anthony Sottile
bd65d8947f Implement default_stages 2019-01-06 10:32:58 -08:00
Anthony Sottile
9c6a1d80d6 Merge pull request #908 from asottile/default_language_version
Implement default_language_version
2019-01-05 13:47:18 -08:00
Anthony Sottile
d3b5a41830 Implement default_language_version 2019-01-05 13:15:23 -08:00
Anthony Sottile
579b05e424 Merge pull request #907 from asottile/schema_default
Default local / meta through cfgv
2019-01-05 09:06:18 -08:00
Anthony Sottile
fc84567923 Default local / meta through cfgv 2019-01-05 08:31:03 -08:00