DanielChabrowski
ab1df03418
Ignore shallow clone coverage on appveyor
...
Appveyor uses old version of git so shallow clone
always fails and lines 150-151 are not executed.
2019-03-16 00:16:42 +01:00
DanielChabrowski
a170e60daa
Remove protocol.version 1 shallow cloning
2019-03-15 23:46:35 +01:00
DanielChabrowski
e748da2abe
Remove clone depth check
2019-03-15 23:25:04 +01:00
Anthony Sottile
ec2e15f086
pre-commit run --all-files
2019-03-14 18:32:27 -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
DanielChabrowski
960bcc9614
Fix relative path repos
2019-03-09 23:56:37 +01:00
DanielChabrowski
b920f3cc6b
Reuse the directory for cloning
2019-03-09 22:59:56 +01:00
DanielChabrowski
e74253d2de
Allow shallow cloning
2019-03-03 01:35:53 +01:00
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