Commit Graph

1367 Commits

Author SHA1 Message Date
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
Anthony Sottile
46ae88c1f0 Merge pull request #906 from asottile/gc
pre-commit gc
2019-01-02 19:46:38 -08:00
Anthony Sottile
9e34e6e316 pre-commit gc 2019-01-02 19:07:23 -08:00
Anthony Sottile
d7f5c6f979 Merge pull request #904 from asottile/clone_uncommitted
Teach pre-commit try-repo to clone uncommitted changes
2019-01-01 15:56:02 -08:00
Anthony Sottile
e4f0b4c1b7 Only configure logging inside the context 2019-01-01 15:01:37 -08:00
Anthony Sottile
bdc58cc33f Teach pre-commit try-repo to clone uncommitted changes 2019-01-01 15:01:36 -08:00
Anthony Sottile
e04505a669 Merge pull request #903 from pre-commit/relative_chdir_try_repo
Fix try-repo relpath while in a sub-directory
2019-01-01 12:35:00 -08:00
Anthony Sottile
4da461d90a Fix try-repo relpath while in a sub-directory 2019-01-01 11:57:06 -08:00
Anthony Sottile
b31cb22d8b Merge pull request #902 from pre-commit/windows_100
Add more 'no cover windows' comments
2018-12-31 14:35:09 -08:00
Anthony Sottile
4f9d0397b5 Add more 'no cover windows' comments 2018-12-31 14:06:10 -08:00
Anthony Sottile
177164b5a2 Merge pull request #901 from pre-commit/no_asdict
Use Hook api in languages
2018-12-31 13:27:32 -08:00
Anthony Sottile
b59d7197ff Use Hook api in languages 2018-12-31 13:16:48 -08:00
Anthony Sottile
5f9a667470 Merge pull request #900 from pre-commit/simplify_dict
just use normal dicts in tests
2018-12-31 11:43:36 -08:00
Anthony Sottile
e4cf5f321b just use normal dicts in tests 2018-12-31 11:15:22 -08:00
Anthony Sottile
2125a4cf47 Merge pull request #899 from pre-commit/repository_refactor
Refactor pre_commit.repository and factor out cached-property
2018-12-30 21:47:36 -08:00
Anthony Sottile
c577ed92e7 Refactor pre_commit.repository and factor out cached-property 2018-12-30 20:56:49 -08:00