Commit Graph

1922 Commits

Author SHA1 Message Date
Anthony Sottile
ebd83171df Merge pull request #1751 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-01-04 09:19:50 -08:00
pre-commit-ci[bot]
42cc56c0f6 [pre-commit.ci] pre-commit autoupdate 2021-01-04 16:43:53 +00:00
Anthony Sottile
b2c0fab3b9 Merge pull request #1750 from paulhfischer/warn_on_globs_instead_of_regex
extended warning if globs are used instead of regex to top level
2021-01-01 16:45:30 -08:00
Paul Fischer
b1a9209f9f extended warning if globs are used instead of regex to top level 2021-01-01 23:57:24 +01:00
Anthony Sottile
7432acc215 Merge pull request #1741 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2020-12-21 09:37:54 -08:00
pre-commit-ci[bot]
75aa6a0840 [pre-commit.ci] pre-commit autoupdate 2020-12-21 16:43:31 +00:00
Anthony Sottile
0ed7930976 Merge pull request #1715 from paulhfischer/warn_if_mutable_rev_is_used
added warning if mutable rev is used
2020-12-18 12:59:31 -08:00
Paul Fischer
1e4de986a8 added warning if mutable rev is used 2020-12-18 12:20:21 -08:00
Anthony Sottile
8670d0b3bc Merge pull request #1735 from pre-commit/allow_ci_key
allow configuration for pre-commit.ci
2020-12-18 12:06:15 -08:00
Anthony Sottile
38a4a0aa3b allow configuration for pre-commit.ci 2020-12-16 20:21:33 -08:00
Anthony Sottile
2d54ea112a fix typo in CHANGELOG 2020-12-07 15:09:02 -08:00
Anthony Sottile
a062cbd439 v2.9.3 v2.9.3 2020-12-07 15:06:39 -08:00
Anthony Sottile
eacf4c886e Merge pull request #1727 from mrogaski/1610_git_toplevel_relpath
git: changed rev-parse option for Git 2.25 changes to --show-toplevel
2020-12-07 14:50:54 -08:00
Mark Rogaski
29d15de38e git: changed rev-parse option for Git 2.25 changes to --show-toplevel
Git 2.25 introduced a change to "rev-parse --show-toplevel" that exposed underlying volumes for Windows drives mapped with SUBST.  We use "rev-parse --show-cdup" to get the appropriate path, but must perform an extra check to see if we are in the .git directory.
2020-12-07 13:54:05 -08:00
Anthony Sottile
cf604f6b93 Merge pull request #1725 from fsouza/fix-rmtree
util: also run chmod on EPERM
2020-12-06 10:27:15 -08:00
francisco souza
c598785b6f util: use set instead of tuple in errno check
Co-authored-by: Paul Fischer <70564747+paulhfischer@users.noreply.github.com>
2020-12-06 07:45:31 -08:00
francisco souza
bb0d9573a9 util: also run chmod on EPERM
Writing a test for this one is tricky, because I was seeing the issue
only when the directory being removed is a docker volume, so instead of
getting EACCES we get EPERM.

This is easy to reproduce though. The existing test fails when the
directory being used for the files is a docker volume:

```
% docker run \
	-v $(mktemp -d):/tmp \
	-v ${PWD}:/src \
	-w /src \
	python:3 \
	bash -c 'pip install -e . && pip install -r requirements-dev.txt && python -m pytest tests/util_test.py'
```
2020-12-05 22:26:38 -05:00
Anthony Sottile
92ce2dcbc3 Merge pull request #1721 from pre-commit/dont_crash_on_cygwin_check
don't crash on cygwin mismatch check
2020-11-28 15:48:30 -08:00
Anthony Sottile
8cfe8e590d don't crash on cygwin mismatch check 2020-11-28 15:20:14 -08:00
Anthony Sottile
6c6294571a Add link to issue by CodeBleu 2020-11-27 17:00:17 -08:00
Anthony Sottile
a82a79bf3f Merge pull request #1717 from pre-commit/fix_test
fix symlink test for windows
2020-11-26 11:34:22 -08:00
Anthony Sottile
e6c9b04386 fix symlink test for windows 2020-11-26 09:42:27 -08:00
Anthony Sottile
f15cfbb208 v2.9.2 v2.9.2 2020-11-25 18:39:54 -08:00
Anthony Sottile
bf85379619 Merge pull request #1716 from pre-commit/types_or_default
fix the default value for types_or
2020-11-25 18:37:50 -08:00
Anthony Sottile
89ab609732 fix the default value for types_or 2020-11-25 18:21:37 -08:00
Anthony Sottile
b5baf5c807 Merge pull request #1714 from pre-commit/sha256sum_pyz
also produce sha256sum of pyz on creation
2020-11-25 14:09:42 -08:00
Anthony Sottile
0bd6dfc1a2 also produce sha256sum of pyz on creation 2020-11-25 13:45:22 -08:00
Anthony Sottile
c4f2c6d24d v2.9.1 v2.9.1 2020-11-25 13:40:28 -08:00
Anthony Sottile
a9ed1de5f7 Merge pull request #1713 from pre-commit/pyvenv_utf8_windows
fix for base executable with non-ascii characters on windows
2020-11-25 13:26:19 -08:00
Anthony Sottile
7486dee082 fix for base executable with non-ascii characters on windows 2020-11-25 12:44:48 -08:00
Anthony Sottile
029f9cca97 Merge pull request #1707 from paulhfischer/warn_on_globs_instead_of_regex
added warning if globs are used instead of regex
2020-11-23 11:52:05 -08:00
Paul Fischer
610716d3d1 added warning if globs are used instead of regex 2020-11-22 18:53:48 -08:00
Anthony Sottile
6e37f197b0 Merge pull request #1709 from paulhfischer/fix_missing_hooks_autoupdate_message
fixed message if repo couldn't be updated due to missing hook(s)
2020-11-22 14:03:04 -08:00
Paul Fischer
53109a0127 fixed message if repo couldn't be updated due to missing hook(s) 2020-11-22 13:34:10 -08:00
Anthony Sottile
099213f365 v2.9.0 v2.9.0 2020-11-21 13:33:20 -08:00
Anthony Sottile
b368fbd1a0 Merge pull request #1704 from Vynce/ignore-submodules
Improve performance by ignoring submodules
2020-11-19 22:27:13 -08:00
Michael Vincent
120d60223a Improve performance by ignoring submodules
When git status runs in a repo with submodules, it'll recursively run
git status in every submodule as well by default (sequentially).
git status is substantially slower on Windows than on Linux. git diff
behaves similarly to git status in terms of running recursively within
all submodules. In repos with hundreds of submodules, this quickly adds
up when git status/diff are called multiple times. Pre-commit runs
git status once at the beginning of an operation and then runs git diff
before and after each hook. These calls quickly add up and make
pre-commit unusable in large repos with lots of submodules.

This commit drastically improves performance in repos with lots of
submodules and fixes #1701 by telling git status and git diff to ignore
submodules. This change is not expected to have any negative effect on
existing hooks because each submodule should manage its own hooks
instead of relying on superproject hooks to manipulate their contents.
2020-11-19 23:26:05 -06:00
Anthony Sottile
84195868fc Merge pull request #1700 from pre-commit/rbenv_default_more
fix for rbenv used outside of pre-commit and language_version: default
2020-11-19 17:45:44 -08:00
Anthony Sottile
e5a5ae8f24 Merge pull request #1703 from pre-commit/all-repos_autofix_gh-sponsors
Add link to GitHub Sponsors + Open Collective
2020-11-19 17:45:33 -08:00
Anthony Sottile
184e1908c8 Add link to GitHub Sponsors + Open Collective
at the time of writing I am currently unemployed.  I'd love to make open
source a full time career.  if you or your company is deriving value from
this free software, please consider [sponsoring] or [supporting].

[sponsoring]: https://github.com/sponsors/asottile
[supporting]: https://opencollective.com/pre-commit

Committed via https://github.com/asottile/all-repos
2020-11-19 17:13:02 -08:00
Anthony Sottile
a3e3b3d8aa fix for rbenv used outside of pre-commit and language_version: default 2020-11-17 11:58:46 -08:00
Anthony Sottile
59acc7e48a Merge pull request #1698 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2020-11-16 09:48:49 -08:00
pre-commit-ci[bot]
6dbd53b387 [pre-commit.ci] pre-commit autoupdate 2020-11-16 17:04:58 +00:00
Anthony Sottile
8d28c9ab40 Merge pull request #1691 from pre-commit/slightly_simpler_enum
use slightly simpler enum syntax
2020-11-09 13:24:05 -08:00
Anthony Sottile
55cdfc6fd2 use slightly simpler enum syntax 2020-11-09 12:29:57 -08:00
Anthony Sottile
e836e55489 Merge pull request #1688 from pre-commit/simplify_new_rev
add test to guard against yaml_dump
2020-11-06 22:39:59 -08:00
Anthony Sottile
13242f55c5 add test to guard against yaml_dump 2020-11-06 17:07:37 -08:00
Anthony Sottile
1494faee1f Merge pull request #1687 from pre-commit/simple_rev_line_re
remove DOTALL on REV_LINE_RE
2020-11-06 16:32:46 -08:00
Anthony Sottile
64d57ba466 remove DOTALL on REV_LINE_RE 2020-11-06 14:36:43 -08:00
Anthony Sottile
10b0c113a4 Merge pull request #1686 from pre-commit/cmd_is_the_worst
improve xargs when running windows batch files
2020-11-06 14:09:11 -08:00