anthony sottile
8416413a0e
Merge pull request #3599 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-12-22 16:55:46 -05:00
pre-commit-ci[bot]
37a879e65e
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v3.1.0 → v3.2.0](https://github.com/asottile/setup-cfg-fmt/compare/v3.1.0...v3.2.0 )
2025-12-22 20:26:26 +00:00
Anthony Sottile
8a0630ca1a
v4.5.1
main / main-linux (push) Has been cancelled
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
2025-12-16 16:13:56 -05:00
anthony sottile
fcbc745744
Merge pull request #3597 from pre-commit/empty-setup-py
...
fix python local template when artifact dirs are present
2025-12-16 14:56:40 -06:00
Anthony Sottile
51592eecec
fix python local template when artifact dirs are present
2025-12-16 15:45:01 -05:00
anthony sottile
67e8faf80b
Merge pull request #3596 from pre-commit/pre-commit-ci-update-config
...
languages / language (push) Blocked by required conditions
languages / collector (push) Blocked by required conditions
languages / vars (push) Waiting to run
main / main-windows (push) Waiting to run
main / main-linux (push) Waiting to run
[pre-commit.ci] pre-commit autoupdate
2025-12-15 16:04:01 -06:00
pre-commit-ci[bot]
c251e6b6d0
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.19.0 → v1.19.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.0...v1.19.1 )
2025-12-15 20:48:45 +00:00
anthony sottile
98ccafa3ce
Merge pull request #3593 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-12-01 16:13:49 -05:00
pre-commit-ci[bot]
48953556d0
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.18.2...v1.19.0 )
2025-12-01 21:05:15 +00:00
anthony sottile
2cedd58e69
Merge pull request #3588 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-11-25 10:52:12 -05:00
pre-commit-ci[bot]
465192d7de
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.21.1 → v3.21.2](https://github.com/asottile/pyupgrade/compare/v3.21.1...v3.21.2 )
2025-11-24 20:53:38 +00:00
anthony sottile
fd42f96874
Merge pull request #3586 from pre-commit/zipapp-sha256-file-not-needed
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
remove sha256 file from zipapp script
2025-11-22 16:15:39 -05:00
anthony sottile
8ea2b790d8
remove sha256 file from zipapp script
...
github displays the checksum for us now!
2025-11-22 16:06:27 -05:00
anthony sottile
1af6c8fa95
v4.5.0
2025-11-22 16:02:16 -05:00
anthony sottile
3358a3b540
Merge pull request #3585 from pre-commit/hazmat
...
add pre-commit hazmat
2025-11-22 14:03:09 -05:00
anthony sottile
bdf68790b7
add pre-commit hazmat
2025-11-22 13:53:53 -05:00
anthony sottile
e436690f14
Merge pull request #3584 from pre-commit/exitstack
...
languages / vars (push) Waiting to run
languages / language (push) Blocked by required conditions
languages / collector (push) Blocked by required conditions
main / main-windows (push) Waiting to run
main / main-linux (push) Waiting to run
use ExitStack instead of start + stop
2025-11-21 15:19:53 -05:00
anthony sottile
8d34f95308
use ExitStack instead of start + stop
2025-11-21 15:09:41 -05:00
anthony sottile
9c7ea88ab9
Merge pull request #3583 from pre-commit/forward-compat-map-manifest
...
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
languages / collector (push) Has been cancelled
add forward-compat error message
2025-11-19 15:10:28 -05:00
Anthony Sottile
844dacc168
add forward-compat error message
2025-11-19 14:57:01 -05:00
anthony sottile
6a1d543e52
Merge pull request #3582 from pre-commit/move-gc-back
...
move logic for gc back to commands.gc
2025-11-19 14:44:46 -05:00
Anthony Sottile
66278a9a0b
move logic for gc back to commands.gc
2025-11-19 14:32:09 -05:00
anthony sottile
1b32c50bc7
Merge pull request #3579 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-11-10 16:53:56 -05:00
pre-commit-ci[bot]
063229aee7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.21.0 → v3.21.1](https://github.com/asottile/pyupgrade/compare/v3.21.0...v3.21.1 )
2025-11-10 20:59:54 +00:00
anthony sottile
49e28eea48
Merge pull request #3578 from pre-commit/store-gc-refactor
...
languages / vars (push) Waiting to run
languages / language (push) Blocked by required conditions
languages / collector (push) Blocked by required conditions
main / main-windows (push) Waiting to run
main / main-linux (push) Waiting to run
refactor gc into store
2025-11-09 17:16:27 -05:00
Anthony Sottile
d5c273a2ba
refactor gc into store
...
this will make refactoring this easier later and limits the api surface of Store
2025-11-09 17:03:43 -05:00
anthony sottile
17cf886473
v4.4.0
languages / vars (push) Waiting to run
languages / language (push) Blocked by required conditions
languages / collector (push) Blocked by required conditions
main / main-windows (push) Waiting to run
main / main-linux (push) Waiting to run
2025-11-08 16:11:43 -05:00
anthony sottile
cb63a5cb9a
Merge pull request #3535 from br-rhrbacek/fix-cgroups
...
Fix docker-in-docker detection for cgroups v2
2025-11-08 15:45:53 -05:00
Radek Hrbacek
f80801d75a
Fix docker-in-docker detection for cgroups v2
2025-11-08 15:37:32 -05:00
anthony sottile
9143fc3545
Merge pull request #3577 from pre-commit/language-unsupported
...
rename system and script languages to unsupported / unsupported_script
2025-11-08 15:21:50 -05:00
anthony sottile
725acc969a
rename system and script languages to unsupported / unsupported_script
2025-11-08 15:09:16 -05:00
anthony sottile
3815e2e6d8
Merge pull request #3576 from pre-commit/fix-stages-config-error
...
fix missing context in error for stages
2025-11-08 14:44:32 -05:00
anthony sottile
aa2961c122
fix missing context in error for stages
2025-11-08 14:31:15 -05:00
anthony sottile
46297f7cd6
Merge pull request #3575 from pre-commit/rm-python3-hooks-repo
...
languages / vars (push) Waiting to run
languages / language (push) Blocked by required conditions
languages / collector (push) Blocked by required conditions
main / main-windows (push) Waiting to run
main / main-linux (push) Waiting to run
rm python3_hooks_repo
2025-11-08 13:45:42 -05:00
anthony sottile
95eec75004
rm python3_hooks_repo
2025-11-08 13:34:44 -05:00
anthony sottile
5e4b3546f3
Merge pull request #3574 from pre-commit/rm-hook-with-spaces-test
...
remove redundant system spaces test
2025-11-08 13:24:42 -05:00
anthony sottile
8bbfcf1f82
remove redundant system spaces test
...
`test_args_with_spaces_and_quotes` also covers this behaviour
2025-11-08 13:16:38 -05:00
anthony sottile
65175f3cf3
Merge pull request #3566 from pre-commit/upgrade-rbenv
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
upgrade rbenv / ruby-build
2025-10-24 12:34:53 -07:00
anthony sottile
fc33a62f3c
upgrade rbenv / ruby-build
2025-10-24 15:18:07 -04:00
anthony sottile
2db924eb98
Merge pull request #3561 from pre-commit/warn-to-warning
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
fix deprecated call
2025-10-16 10:34:47 -04:00
Anthony Sottile
ddfcf4034b
fix deprecated call
2025-10-16 10:23:30 -04:00
anthony sottile
1b424ccfa2
Merge pull request #3558 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-10-13 16:54:01 -04:00
pre-commit-ci[bot]
221637b0cb
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v2.8.0 → v3.1.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.8.0...v3.1.0 )
- [github.com/asottile/reorder-python-imports: v3.15.0 → v3.16.0](https://github.com/asottile/reorder-python-imports/compare/v3.15.0...v3.16.0 )
- [github.com/asottile/add-trailing-comma: v3.2.0 → v4.0.0](https://github.com/asottile/add-trailing-comma/compare/v3.2.0...v4.0.0 )
- [github.com/asottile/pyupgrade: v3.20.0 → v3.21.0](https://github.com/asottile/pyupgrade/compare/v3.20.0...v3.21.0 )
2025-10-13 20:38:45 +00:00
anthony sottile
7ad23528d0
Merge pull request #3554 from pre-commit/all-repos_autofix_all-repos-manual
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
py310+
2025-10-10 12:08:36 -04:00
anthony sottile
f415f6c4d7
py310+
...
Committed via https://github.com/asottile/all-repos
2025-10-09 17:44:05 -04:00
Anthony Sottile
99fa9ba5ef
Merge pull request #3544 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-09-23 09:36:35 -04:00
pre-commit-ci[bot]
ad0d4cd427
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.17.1 → v1.18.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.1...v1.18.2 )
2025-09-22 20:44:04 +00:00
Anthony Sottile
924680e974
Merge pull request #3537 from pre-commit/security-options-null
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
handle `SecurityOptions: null` in docker response
2025-09-06 14:47:53 -04:00
anthony sottile
2930ea0fcd
handle SecurityOptions: null in docker response
2025-09-06 14:40:20 -04:00
Anthony Sottile
b96127c485
Merge pull request #3536 from pre-commit/store-true-default
...
store_true does not need default=...
2025-09-06 14:28:02 -04:00
Anthony Sottile
954cc3b3b3
Merge pull request #3528 from JulianMaurin/feat/fail-fast
...
Add fail-fast argument for run command
2025-09-06 14:22:57 -04:00
anthony sottile
e671830402
store_true does not need default=...
2025-09-06 14:20:01 -04:00
JulianMaurin
c78f248c60
Add fail-fast argument for run command
2025-09-06 14:14:23 -04:00
Anthony Sottile
e70b313c80
Merge pull request #3510 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-08-13 10:21:38 -04:00
pre-commit-ci[bot]
87a681f866
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0 )
2025-08-11 20:46:13 +00:00
anthony sottile
b74a22d96c
v4.3.0
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / vars (push) Has been cancelled
languages / collector (push) Has been cancelled
languages / language (push) Has been cancelled
2025-08-09 14:54:49 -04:00
Anthony Sottile
cc899de192
Merge pull request #3507 from bc-lee/dart-fix
...
Make Dart pre-commit hook compatible with the latest Dart SDKs
2025-08-09 14:03:07 -04:00
Byoungchan Lee
2a0bcea757
Downgrade Dart SDK version installed in the CI
2025-08-08 17:40:30 +09:00
Byoungchan Lee
f1cc7a445f
Make Dart pre-commit hook compatible with the latest Dart SDKs
...
Dart introduced sound null safety in version 2.12.0, and as of Dart 3,
null safety is mandatory. Older Dart SDKs allowed both pre-null safety
and null-safe packages, but modern Dart SDKs, where most source code is
null-safe, now reject pre-null safety packages.
The current `pubspec.yaml` template with `sdk: '>=2.10.0'` is
incompatible with recent Dart SDKs, leading to the following error:
An unexpected error has occurred: CalledProcessError: command: ('/path/to/dart-sdk/bin/dart', 'pub', 'get')
return code: 65
stdout:
Resolving dependencies...
stderr:
The lower bound of "sdk: '>=2.10.0'" must be 2.12.0'
or higher to enable null safety.
The current Dart SDK (3.8.3) only supports null safety.
For details, see https://dart.dev/null-safety
To ensure compatibility with the modern Dart ecosystem, this commit
updates the minimum Dart SDK version to 2.12.0 or higher,
which implicitly supports null safety.
Additionally, `testing/get-dart.sh` has been updated to verify that
the pre-commit hook functions correctly with the latest Dart versions.
2025-08-08 17:14:59 +09:00
Anthony Sottile
72a3b71f0e
Merge pull request #3504 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-08-04 18:09:19 -04:00
pre-commit-ci[bot]
c8925a457a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.17.0 → v1.17.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.17.0...v1.17.1 )
2025-08-04 20:31:31 +00:00
Anthony Sottile
a5fe6c500c
Merge pull request #3496 from ericphanson/eph/jl-startup
...
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
Julia language: skip startup.jl file
2025-08-02 14:43:29 -04:00
Eric Hanson
6f1f433a9c
Julia language: skip startup.jl file
2025-08-02 14:35:27 -04:00
Anthony Sottile
c6817210b1
Merge pull request #3499 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-07-24 11:21:39 +02:00
pre-commit-ci[bot]
4fd4537bc6
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.16.1 → v1.17.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.1...v1.17.0 )
2025-07-21 20:02:20 +00:00
Anthony Sottile
a1d7bed86f
Merge pull request #3485 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-06-24 15:37:11 -04:00
pre-commit-ci[bot]
d1d5b3d564
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 7.2.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.2.0...7.3.0 )
- [github.com/pre-commit/mirrors-mypy: v1.16.0 → v1.16.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.16.0...v1.16.1 )
2025-06-23 19:55:22 +00:00
Anthony Sottile
9c228a0bd8
Merge pull request #3477 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-06-02 17:29:56 -07:00
pre-commit-ci[bot]
d4f0c6e8a7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v1.16.0 )
2025-06-02 19:57:10 +00:00
Anthony Sottile
5f0c773e74
Merge pull request #3470 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-05-27 21:36:14 -07:00
pre-commit-ci[bot]
43b426a501
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder-python-imports: v3.14.0 → v3.15.0](https://github.com/asottile/reorder-python-imports/compare/v3.14.0...v3.15.0 )
- [github.com/asottile/add-trailing-comma: v3.1.0 → v3.2.0](https://github.com/asottile/add-trailing-comma/compare/v3.1.0...v3.2.0 )
- [github.com/asottile/pyupgrade: v3.19.1 → v3.20.0](https://github.com/asottile/pyupgrade/compare/v3.19.1...v3.20.0 )
2025-05-26 19:45:48 +00:00
Anthony Sottile
8a4af027a1
Merge pull request #3446 from matthewhughes934/fix-docker-rootless-permission-mounts
...
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
Fix permission errors for mounts in rootless docker
2025-05-23 17:11:14 -04:00
Matthew Hughes
466f6c4a39
Fix permission errors for mounts in rootless docker
...
By running containers in a rootless docker context as root. This is
because user and group IDs are remapped in the user namespaces uses by
rootless docker, and it's unlikely that the current user ID will map to
the same ID under this remap (see docs[1] for some more details).
Specifically, it means ownership of mounted volumes will not be for the
current user and trying to write can result in permission errors.
This change borrows heavily from an existing PR[2].
The output format of `docker system info` I don't think is
documented/guaranteed anywhere, but it should corresponding to the
format of a `/info` API request to Docker[3]
The added test _hopes_ to avoid regressions in this behaviour, but since
tests aren't run in a rootless docker context on the PR checks (and I
couldn't find an easy way to make it the case) there's still a risk of
regressions sneaking in.
Link: https://docs.docker.com/engine/security/rootless/ [1]
Link: https://github.com/pre-commit/pre-commit/pull/1484/ [2]
Link: https://docs.docker.com/reference/api/engine/version/v1.48/#tag/System/operation/SystemAuth [3]
Co-authored-by: Kurt von Laven <Kurt-von-Laven@users.noreply.github.com>
Co-authored-by: Fabrice Flore-Thébault <ffloreth@redhat.com>
2025-05-23 17:01:10 -04:00
Anthony Sottile
d2b61d0ef2
Merge pull request #3439 from pre-commit/pre-commit-ci-update-config
...
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
[pre-commit.ci] pre-commit autoupdate
2025-03-31 15:55:15 -04:00
pre-commit-ci[bot]
43592c2a29
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2025-03-31 19:44:12 +00:00
pre-commit-ci[bot]
6d47b8d52b
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v2.7.0 → v2.8.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.7.0...v2.8.0 )
- [github.com/PyCQA/flake8: 7.1.2 → 7.2.0](https://github.com/PyCQA/flake8/compare/7.1.2...7.2.0 )
2025-03-31 19:43:51 +00:00
Anthony Sottile
aa48766b88
v4.2.0
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
2025-03-18 17:34:49 -04:00
Anthony Sottile
bf6f11dc6c
Merge pull request #3430 from pre-commit/preferential-sys-impl
...
adjust python default_language_version to prefer versioned exe
2025-03-18 17:26:41 -04:00
Anthony Sottile
3e8d0f5e1c
adjust python default_language_version to prefer versioned exe
2025-03-18 14:55:24 -04:00
Anthony Sottile
ff7256cedf
Merge pull request #3425 from tusharsadhwani/ambiguous-ref
...
languages / vars (push) Has been cancelled
languages / language (push) Has been cancelled
languages / collector (push) Has been cancelled
main / main-windows (push) Has been cancelled
main / main-linux (push) Has been cancelled
fix: crash on ambiguous ref 'HEAD'
2025-03-15 15:29:29 -04:00
Tushar Sadhwani
b7eb412c79
fix: crash on ambiguous ref 'HEAD'
2025-03-15 15:23:15 -04:00
Anthony Sottile
7b88c63ae6
Merge pull request #3404 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2025-02-17 16:20:33 -05:00
pre-commit-ci[bot]
94b97e28f7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 7.1.1 → 7.1.2](https://github.com/PyCQA/flake8/compare/7.1.1...7.1.2 )
2025-02-17 21:07:26 +00:00
Anthony Sottile
2f93b80484
Merge pull request #3401 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2025-02-12 09:34:15 -05:00
pre-commit-ci[bot]
4f90a1e88a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.1...v1.15.0 )
2025-02-10 22:44:01 +00:00
Anthony Sottile
aba1ce04e7
Merge pull request #3396 from pre-commit/all-repos_autofix_all-repos-sed
...
upgrade asottile/workflows
2025-01-30 15:05:49 -05:00
Anthony Sottile
e2210c97e2
upgrade asottile/workflows
...
Committed via https://github.com/asottile/all-repos
2025-01-30 14:58:50 -05:00
Anthony Sottile
804c853d8f
Merge pull request #3390 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2025-01-20 20:43:00 -05:00
pre-commit-ci[bot]
edd0002e43
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/hhatto/autopep8: v2.3.1 → v2.3.2](https://github.com/hhatto/autopep8/compare/v2.3.1...v2.3.2 )
2025-01-20 22:30:07 +00:00
Anthony Sottile
b152e922ef
v4.1.0
2025-01-20 13:35:33 -05:00
Anthony Sottile
c3125a4d36
Merge pull request #3389 from lorenzwalthert/dev-always-unset-renv
...
Fix language:r hook installation when initiated in RStudio
2025-01-20 13:18:20 -05:00
Lorenz Walthert
c2c061cf63
fix: ensure env patch is applied for vanilla emulation
...
otherwise, installing the hooks when RENV_USER env variable is set (e.g. in RStudio with renv project) will result in executing the installation script in the wrong renv
2025-01-20 13:13:36 -05:00
Anthony Sottile
cd429db5e2
Merge pull request #3382 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2025-01-07 20:21:38 -05:00
pre-commit-ci[bot]
9b9f8e254d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.14.0 → v1.14.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.0...v1.14.1 )
2025-01-06 23:30:19 +00:00
Anthony Sottile
86300a4a7e
Merge pull request #3376 from pre-commit/r-gone
...
install r on ubuntu runners
2024-12-28 16:16:53 -05:00
Anthony Sottile
77edad8455
install r on ubuntu runners
...
this was removed in ubuntu-24.04 github actions runner
2024-12-28 16:06:00 -05:00
Anthony Sottile
18b393905e
Merge pull request #3375 from pre-commit/dotnet-tests-ubuntu-latest
...
update .net tests to use .net 8
2024-12-28 16:03:04 -05:00
Anthony Sottile
31cb945ffb
Merge pull request #3374 from pre-commit/docker-image-tests-ubuntu-22-not-present
...
fix docker_image test when ubuntu:22.04 image is not pre-pulled
2024-12-28 15:52:16 -05:00
Anthony Sottile
28c3d81bd2
update .net tests to use .net 8
...
.net 6 and 7 were removed from github actions runners
2024-12-28 15:50:58 -05:00
Anthony Sottile
aa85be9340
fix docker_image test when ubuntu:22.04 image is not pre-pulled
2024-12-28 15:45:05 -05:00
Anthony Sottile
1027596280
Merge pull request #3373 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-12-23 21:10:03 -05:00
pre-commit-ci[bot]
db85eeed2d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.19.0 → v3.19.1](https://github.com/asottile/pyupgrade/compare/v3.19.0...v3.19.1 )
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.13.0...v1.14.0 )
2024-12-23 22:45:24 +00:00
Anthony Sottile
cb14bc2d9c
Merge pull request #3304 from AleksaC/go-toolchain
...
disable automatic toolchain switching for golang hooks
2024-11-25 18:54:37 -05:00
AleksaC
109628c505
disable automatic toolchain switching for golang hooks
2024-11-25 18:47:18 -05:00
Anthony Sottile
74233a125a
Merge pull request #3348 from fredrikekre/fe/julia
...
Add support for julia hooks
2024-11-25 18:38:49 -05:00
Fredrik Ekre
85783bdc0b
Add support for julia hooks
...
This patch adds 2nd class support for hooks using julia as the language.
pre-commit will install any dependencies defined in the hooks repo
`Project.toml` file, with support for `additional_dependencies` as well.
Julia doesn't (yet) have a way to install binaries/scripts so for julia
hooks the `entry` value is a (relative) path to a julia script within
the hooks repository. When executing a julia hook the (globally
installed) julia interpreter is prepended to the entry.
Example `.pre-commit-hooks.yaml`:
```yaml
- id: foo
name: ...
language: julia
entry: bin/foo.jl --arg1
```
Example hooks repo: https://github.com/fredrikekre/runic-pre-commit/tree/fe/julia
Accompanying pre-commit.com PR: https://github.com/pre-commit/pre-commit.com/pull/998
Fixes #2689 .
2024-11-25 18:31:25 -05:00
Anthony Sottile
9da45a686a
Merge pull request #3345 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-10-28 21:23:33 -04:00
pre-commit-ci[bot]
708ca3b581
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.18.0 → v3.19.0](https://github.com/asottile/pyupgrade/compare/v3.18.0...v3.19.0 )
- [github.com/pre-commit/mirrors-mypy: v1.12.1 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.12.1...v1.13.0 )
2024-10-28 22:56:52 +00:00
Anthony Sottile
611195a088
Merge pull request #3333 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-10-21 20:42:52 -04:00
Anthony Sottile
0de4c8028a
remove unused type ignore
2024-10-21 20:35:56 -04:00
pre-commit-ci[bot]
46de4da34e
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v2.5.0 → v2.7.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.5.0...v2.7.0 )
- [github.com/asottile/reorder-python-imports: v3.13.0 → v3.14.0](https://github.com/asottile/reorder-python-imports/compare/v3.13.0...v3.14.0 )
- [github.com/asottile/pyupgrade: v3.17.0 → v3.18.0](https://github.com/asottile/pyupgrade/compare/v3.17.0...v3.18.0 )
- [github.com/pre-commit/mirrors-mypy: v1.11.2 → v1.12.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.2...v1.12.1 )
2024-10-21 22:30:38 +00:00
Anthony Sottile
cc4a522415
v4.0.1
2024-10-08 12:08:49 -04:00
Anthony Sottile
772d7d45d3
Merge pull request #3324 from pre-commit/migrate-config-purelib
...
fix migrate-config for purelib yaml
2024-10-08 12:01:05 -04:00
Anthony Sottile
222c62bc5d
fix migrate-config for purelib yaml
2024-10-08 11:46:48 -04:00
Anthony Sottile
3d5548b487
Merge pull request #3323 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-10-08 06:48:13 -04:00
pre-commit-ci[bot]
4235a877f3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0 )
2024-10-08 00:02:26 +00:00
Anthony Sottile
dbccd57db0
v4.0.0
2024-10-05 14:58:22 -04:00
Anthony Sottile
d07e52901c
Merge pull request #3320 from pre-commit/remove-python-venv
...
remove deprecated python_venv alias
2024-10-05 13:58:57 -04:00
Anthony Sottile
801b956304
remove deprecated python_venv alias
2024-10-05 13:30:25 -04:00
Anthony Sottile
a2f7b80e89
Merge pull request #3315 from pre-commit/warn-deprecated-stage-names-on-init
...
add warning for deprecates stages for remote repos on init
2024-09-30 20:48:47 -04:00
Anthony Sottile
d31722386e
add warning for deprecates stages for remote repos on init
2024-09-30 20:41:50 -04:00
Anthony Sottile
7555e11098
Merge pull request #3314 from pre-commit/remove-log-info-mock
...
replace log_info_mock with pytest's caplog
2024-09-30 20:07:00 -04:00
Anthony Sottile
05e365fe08
Merge pull request #3313 from pre-commit/default-stages-warning
...
add warning for deprecated stages values in `default_stages`
2024-09-30 20:02:15 -04:00
Anthony Sottile
1d2f1c0cce
replace log_info_mock with pytest's caplog
2024-09-30 19:58:16 -04:00
Anthony Sottile
33e020f315
add warning for deprecated stages values in default_stages
2024-09-30 19:22:14 -04:00
Anthony Sottile
e7cfc0d2cb
Merge pull request #3312 from pre-commit/warning-for-old-stage-names
...
add warning for deprecated stages names
2024-09-30 18:48:39 -04:00
Anthony Sottile
7441a62eb1
add warning for deprecated stages names
2024-09-30 18:41:13 -04:00
Anthony Sottile
eec11bd124
Merge pull request #3311 from pre-commit/sensible-regex-for-meta
...
also apply sensible regex warning for `repo: meta`
2024-09-30 18:16:05 -04:00
Anthony Sottile
fa08d1d637
also apply sensible regex warning for repo: meta
2024-09-30 18:09:04 -04:00
Anthony Sottile
6c068a78d6
Merge pull request #3199 from ThisGuyCodes/thisguycodes/upgrade-ruby-build
...
Upgrade to ruby-build v20240501
2024-09-28 13:16:09 -04:00
Anthony Sottile
c9454e2ec3
regenerate ruby-build archive
2024-09-28 13:07:55 -04:00
Anthony Sottile
e687548842
regenerate archives with python3.12
2024-09-28 13:07:38 -04:00
Travis Johnson
a4e4cef335
Upgrade to ruby-build v20240917
2024-09-28 13:07:38 -04:00
Anthony Sottile
de8590064e
Merge pull request #3302 from pre-commit/migrate-config-stages
...
migrate-config rewrites deprecated stages
2024-09-16 20:45:21 -04:00
Anthony Sottile
5679399d90
migrate-config rewrites deprecated stages
2024-09-16 20:36:33 -04:00
Anthony Sottile
a7b671a758
Merge pull request #3301 from pre-commit/yaml-rewrite
...
change migrate-config to use yaml parse tree instead
2024-09-16 20:24:35 -04:00
Anthony Sottile
364e6d77f0
change migrate-config to use yaml parse tree instead
2024-09-16 20:16:16 -04:00
Anthony Sottile
504149d2ca
Merge pull request #3286 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-08-26 19:03:22 -04:00
pre-commit-ci[bot]
c2c68d985c
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.11.1 → v1.11.2](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.1...v1.11.2 )
2024-08-26 22:18:35 +00:00
Anthony Sottile
0f8f383d53
Merge pull request #3275 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-08-05 18:46:27 -04:00
pre-commit-ci[bot]
d5c21926ab
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](https://github.com/PyCQA/flake8/compare/7.1.0...7.1.1 )
- [github.com/pre-commit/mirrors-mypy: v1.11.0 → v1.11.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.11.0...v1.11.1 )
2024-08-05 22:39:33 +00:00
Anthony Sottile
8a3ee454a2
Merge pull request #3270 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-07-29 21:36:13 -04:00
pre-commit-ci[bot]
917e2102be
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-07-29 21:59:19 +00:00
pre-commit-ci[bot]
9d4ab670d1
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.16.0...v3.17.0 )
2024-07-29 21:59:01 +00:00
Anthony Sottile
d46423ffe1
v3.8.0
2024-07-28 15:58:29 -04:00
Anthony Sottile
8133abd730
Merge pull request #3265 from lorenzwalthert/issue-3206
...
Support health check for `language: r`
2024-07-28 15:54:27 -04:00
Lorenz Walthert
da0c1d0cfa
implement health check for language:r
2024-07-28 15:44:07 -04:00
Anthony Sottile
f641f6a157
Merge pull request #3264 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-07-28 15:07:33 -04:00
Anthony Sottile
a68a19d217
fixes for mypy 1.11
2024-07-28 14:57:13 -04:00
pre-commit-ci[bot]
88317ddb34
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.10.1 → v1.11.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.1...v1.11.0 )
2024-07-22 22:04:19 +00:00
Anthony Sottile
faa6f8c70c
Merge pull request #3244 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-07-05 18:34:07 -04:00
pre-commit-ci[bot]
f632459bc6
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.10.0 → v1.10.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.10.0...v1.10.1 )
2024-07-01 23:34:14 +00:00
Anthony Sottile
0252908c27
Merge pull request #3240 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-06-25 14:16:25 -04:00
pre-commit-ci[bot]
69b5dce12a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/hhatto/autopep8: v2.3.0 → v2.3.1](https://github.com/hhatto/autopep8/compare/v2.3.0...v2.3.1 )
2024-06-24 21:49:02 +00:00
Anthony Sottile
d56502acab
Merge pull request #3237 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-06-18 20:14:03 -04:00
pre-commit-ci[bot]
49a9664cd0
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/hhatto/autopep8: v2.2.0 → v2.3.0](https://github.com/hhatto/autopep8/compare/v2.2.0...v2.3.0 )
- [github.com/PyCQA/flake8: 7.0.0 → 7.1.0](https://github.com/PyCQA/flake8/compare/7.0.0...7.1.0 )
2024-06-17 21:57:20 +00:00
Anthony Sottile
60db5d78d1
Merge pull request #3227 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-06-13 10:28:30 -04:00
pre-commit-ci[bot]
9dd247898c
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.15.2 → v3.16.0](https://github.com/asottile/pyupgrade/compare/v3.15.2...v3.16.0 )
2024-06-10 21:56:51 +00:00
Anthony Sottile
15d9f7f61e
Merge pull request #3217 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-06-03 21:46:10 -04:00
pre-commit-ci[bot]
1f128556e4
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder-python-imports: v3.12.0 → v3.13.0](https://github.com/asottile/reorder-python-imports/compare/v3.12.0...v3.13.0 )
- [github.com/hhatto/autopep8: v2.1.1 → v2.2.0](https://github.com/hhatto/autopep8/compare/v2.1.1...v2.2.0 )
2024-06-03 21:47:18 +00:00
Anthony Sottile
dd144c95f6
Merge pull request #3207 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-05-27 17:46:19 -04:00
pre-commit-ci[bot]
5526bb2137
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/hhatto/autopep8: v2.1.0 → v2.1.1](https://github.com/hhatto/autopep8/compare/v2.1.0...v2.1.1 )
2024-05-27 21:34:15 +00:00
Anthony Sottile
9ee0768353
v3.7.1
2024-05-10 21:24:51 -04:00
Anthony Sottile
eeac061b31
Merge pull request #3201 from pre-commit/rust-default-language-version
...
determine rust default language version independent of rust-toolchain.toml
2024-05-10 21:21:22 -04:00
Anthony Sottile
296f59266e
determine rust default language version independent of rust-toolchain.toml
2024-05-10 17:06:29 -04:00
Anthony Sottile
16023286d2
Merge pull request #3193 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-04-29 21:45:54 -04:00
pre-commit-ci[bot]
0142f45322
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.9.0 → v1.10.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.9.0...v1.10.0 )
2024-04-29 21:38:52 -04:00
Anthony Sottile
d7e21cd29c
Merge pull request #3194 from pre-commit/handle-readonly-3-12
...
adjust _handle_readonly for typeshed updates
2024-04-29 21:36:47 -04:00
Anthony Sottile
5c3d006443
use a simpler gem for testing additional_dependencies
...
tins required building bigdecimal, whereas jmespath is self-contained
2024-04-29 21:28:16 -04:00
Anthony Sottile
0d4c6da36e
adjust _handle_readonly for typeshed updates
2024-04-29 21:05:41 -04:00
Anthony Sottile
85fe18253f
Merge pull request #3176 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-04-10 11:20:08 -04:00
pre-commit-ci[bot]
74d05b444d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0 )
2024-04-08 22:08:29 +00:00
Anthony Sottile
a9f19f4cc0
Merge pull request #3169 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-03-27 17:20:38 -04:00
pre-commit-ci[bot]
4e121ef25c
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.15.1 → v3.15.2](https://github.com/asottile/pyupgrade/compare/v3.15.1...v3.15.2 )
2024-03-25 21:31:39 +00:00
Anthony Sottile
7b4667e9e6
v3.7.0
2024-03-24 13:37:19 -04:00
Anthony Sottile
d46c8fc051
Merge pull request #3168 from pre-commit/fix-fail-fast
...
fix per-hook fail_fast to not fail on previous failures
2024-03-24 13:28:36 -04:00
Anthony Sottile
fc622159a6
fix per-hook fail_fast to not fail on previous failures
2024-03-24 13:17:00 -04:00
Anthony Sottile
716da1e49c
Merge pull request #3155 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-03-20 09:29:19 -04:00
pre-commit-ci[bot]
0939c11b4f
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/hhatto/autopep8: v2.0.4 → v2.1.0](https://github.com/hhatto/autopep8/compare/v2.0.4...v2.1.0 )
2024-03-18 21:47:27 +00:00
Anthony Sottile
3bdf9fb91b
Merge pull request #3150 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-03-13 10:01:23 -04:00
pre-commit-ci[bot]
75b3e52e57
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.8.0...v1.9.0 )
2024-03-13 00:16:12 +00:00
Anthony Sottile
5e11c266ae
Merge pull request #3122 from glehmann/docker-tty
...
give docker a tty output when expecting color
2024-03-02 11:57:30 -05:00
Gaëtan Lehmann
e58009684c
give docker a tty output when expecting color
...
this makes the behavior more consistent with the system language
and would help the executable run in a docker container to
produce a colored output.
2024-03-02 11:51:34 -05:00
Anthony Sottile
7b868c3508
Merge pull request #3132 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-02-20 10:21:58 -05:00
pre-commit-ci[bot]
a768c038e3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1 )
2024-02-20 00:02:29 +00:00
Anthony Sottile
e525726855
v3.6.2
2024-02-18 13:19:11 -05:00
Anthony Sottile
3187538d2b
Merge pull request #3130 from pre-commit/golang-build-during-commit-a
...
fix building golang hooks during `commit --all`
2024-02-18 13:14:37 -05:00
Anthony Sottile
61d9c95cc1
fix building golang hooks during commit --all
2024-02-18 13:03:44 -05:00
Anthony Sottile
15bd0c7993
v3.6.1
2024-02-10 14:45:43 -05:00
Anthony Sottile
92678c3fa2
Merge pull request #3126 from pre-commit/crlf-only-diff
...
staged_files_only can handle a crlf-only diff
2024-02-10 14:10:29 -05:00
Anthony Sottile
032d8e2704
staged_files_only can handle a crlf-only diff
2024-02-10 14:01:49 -05:00
Anthony Sottile
73848383f2
Merge pull request #3110 from untitaker/pythonexecutable
...
Pop PYTHONEXECUTABLE
2024-01-12 11:39:51 -05:00
pre-commit-ci[bot]
96e0712f43
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-01-12 16:32:44 +00:00
Markus Unterwaditzer
3388e2dbdf
Pop PYTHONEXECUTABLE
2024-01-12 17:30:01 +01:00
Anthony Sottile
10f8853631
Merge pull request #3107 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2024-01-08 17:41:12 -05:00
pre-commit-ci[bot]
9682f93e31
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0 )
2024-01-08 20:21:06 +00:00
Anthony Sottile
5f8ebaefa9
Merge pull request #3102 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-12-26 13:50:45 -05:00
pre-commit-ci[bot]
9cce283422
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0 )
2023-12-25 20:20:03 +00:00
Anthony Sottile
9c9983dba0
v3.6.0
2023-12-09 16:24:52 -05:00
Anthony Sottile
7dc0a59ee5
Merge pull request #3093 from pre-commit/removeprefix
...
python 3.9+: use removeprefix
2023-12-09 16:13:25 -05:00
Anthony Sottile
d3fa7f415c
Merge pull request #3092 from pre-commit/minimum-version-first
...
attempt minimum_pre_commit_version first when parsing configs
2023-12-09 16:04:44 -05:00
Anthony Sottile
08478ec176
python 3.9+: use removeprefix
2023-12-09 16:04:25 -05:00
Anthony Sottile
047439abff
attempt minimum_pre_commit_version first when parsing configs
2023-12-09 15:34:16 -05:00
Anthony Sottile
23a2b7360e
Merge pull request #3079 from edgarrmondragon/deprecation-rmtree-onerror
...
Address deprecation warning in `shutil.rmtree(onerror=...)`
2023-12-09 14:59:09 -05:00
Edgar Ramírez Mondragón
cffabe54be
Address deprecation warning in shutil.rmtree(onerror=...)
2023-12-09 14:51:01 -05:00
Anthony Sottile
51df34e5fb
Merge pull request #3078 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-11-27 17:55:04 -05:00
pre-commit-ci[bot]
e36cefc8bd
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.7.0 → v1.7.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.0...v1.7.1 )
2023-11-27 20:01:19 +00:00
Anthony Sottile
2280645d0e
Merge pull request #3064 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-11-13 21:41:08 -05:00
pre-commit-ci[bot]
1d474994e0
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.6.1 → v1.7.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.1...v1.7.0 )
2023-11-13 20:35:35 +00:00
Anthony Sottile
14169eb31d
Merge pull request #3043 from pre-commit/jaraco
...
3.13 removed the simpler importlib.resources api
2023-10-28 14:50:43 -04:00
Anthony Sottile
75f2710bd4
3.13 removed the simpler importlib.resources api
2023-10-28 14:39:49 -04:00
Anthony Sottile
762e68173b
Merge pull request #3042 from pre-commit/py39
...
python3.9+
2023-10-28 14:35:26 -04:00
Anthony Sottile
7f15dc75ee
python3.9+
2023-10-28 14:20:37 -04:00
Anthony Sottile
5f4ed54cfe
Merge pull request #3038 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-10-23 16:57:56 -04:00
pre-commit-ci[bot]
c69e32e925
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.6.0 → v1.6.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.6.0...v1.6.1 )
2023-10-23 20:28:04 +00:00
Anthony Sottile
48f0dc9615
Merge pull request #3033 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-10-16 22:08:24 -04:00
pre-commit-ci[bot]
44b625ebd3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.1...v1.6.0 )
2023-10-16 20:03:36 +00:00
Anthony Sottile
61cc55a59c
v3.5.0
2023-10-13 11:57:20 -04:00
Anthony Sottile
c9945b9aa3
Merge pull request #3029 from adamchainz/improve_duration_timing
...
Improve hook duration timing
2023-10-13 11:49:53 -04:00
Adam Johnson
d988767b41
Improve hook duration timing
2023-10-13 16:40:30 +01:00
Anthony Sottile
0d8b2451ca
Merge pull request #3023 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-10-09 17:08:44 -04:00
pre-commit-ci[bot]
155c521348
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0 )
- [github.com/asottile/pyupgrade: v3.14.0 → v3.15.0](https://github.com/asottile/pyupgrade/compare/v3.14.0...v3.15.0 )
2023-10-09 16:58:51 -04:00
Anthony Sottile
676e51aa5e
Merge pull request #3024 from pre-commit/pick-shebang-path-without-spaces
...
use sys.executable instead of echo.exe in parse_shebang
2023-10-09 16:58:43 -04:00
Anthony Sottile
997ea0ad52
use sys.executable instead of echo.exe in parse_shebang
...
the GHA runners now have echo.exe in a path with spaces
2023-10-09 16:49:30 -04:00
Anthony Sottile
19aa121db0
Merge pull request #3016 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-10-03 12:57:10 -04:00
pre-commit-ci[bot]
a4ab977cc3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v2.4.0 → v2.5.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.4.0...v2.5.0 )
- [github.com/asottile/reorder-python-imports: v3.11.0 → v3.12.0](https://github.com/asottile/reorder-python-imports/compare/v3.11.0...v3.12.0 )
- [github.com/asottile/pyupgrade: v3.13.0 → v3.14.0](https://github.com/asottile/pyupgrade/compare/v3.13.0...v3.14.0 )
2023-10-03 08:58:04 +00:00
Anthony Sottile
3f3760b86c
Merge pull request #3011 from hack3ric/bump-node-and-go-version
...
Bump Node.js version to 18.14.0 and Go to 1.21.1
2023-09-26 14:16:57 -04:00
Anthony Sottile
051f4e2550
Merge pull request #3012 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-09-26 09:04:10 -04:00
pre-commit-ci[bot]
c68c6b944a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.11.0 → v3.13.0](https://github.com/asottile/pyupgrade/compare/v3.11.0...v3.13.0 )
2023-09-26 07:23:52 +00:00
Eric Long
5e05b01215
Bump Node.js version to 18.14.0 and Go to 1.21.1
...
On riscv64, nodeenv will pull binary from unofficial-builds [1], and
unfortunately 18.13.0 seems to be the only version above 18 that is
missing riscv64 builds. Shifting the version slightly to make test work.
Go's binary now ships with linux/riscv64 binary since 1.21.
2023-09-25 17:02:13 +08:00
Anthony Sottile
84f91646bb
Merge pull request #3006 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-09-19 09:06:27 -04:00
pre-commit-ci[bot]
d33801e781
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder-python-imports: v3.10.0 → v3.11.0](https://github.com/asottile/reorder-python-imports/compare/v3.10.0...v3.11.0 )
- [github.com/asottile/pyupgrade: v3.10.1 → v3.11.0](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.11.0 )
2023-09-19 07:06:08 +00:00
Anthony Sottile
f56b75dd77
Merge pull request #2998 from pre-commit/short-circuit
...
Short-circuit `check-hooks-apply` and `check-useless-excludes` hooks
2023-09-11 19:52:51 -04:00
Max R
5d692d7e06
Short-circuit hooks
2023-09-11 19:41:40 -04:00
Anthony Sottile
0845e4e816
Merge pull request #2996 from RoelAdriaans/feature/fix-1983-npm
...
Use the --include command, hides warning messages
2023-09-11 19:12:06 -04:00
Anthony Sottile
5f4b828999
Merge pull request #3000 from pre-commit/refactor-tests
...
Refactor `target_concurrency` tests
2023-09-10 10:45:14 -04:00
Max R
9ac229dad8
Refactor target_concurrency tests
2023-09-10 08:39:19 -04:00
Roel Adriaans
493c20ce91
Use the --include command, hides warning messages
...
Fixes #1983
2023-09-08 15:12:54 +02:00
Anthony Sottile
e2c6a822c7
Merge pull request #2991 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-09-05 09:07:18 -04:00
pre-commit-ci[bot]
818240e425
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/add-trailing-comma: v3.0.1 → v3.1.0](https://github.com/asottile/add-trailing-comma/compare/v3.0.1...v3.1.0 )
- https://github.com/pre-commit/mirrors-autopep8 → https://github.com/hhatto/autopep8
2023-09-05 06:46:49 +00:00
Anthony Sottile
fe9ba6b53f
v3.4.0
2023-09-02 13:09:13 -04:00
Anthony Sottile
ac42dc586a
Merge pull request #2979 from jdb8/cpu-sched-getaffinity
...
Use os.sched_getaffinity for cpu counts when available
2023-08-30 13:57:54 -04:00
Joe Bateson
ea8244b229
Use os.sched_getaffinity for cpu counts when available
2023-08-30 13:39:20 -04:00
Anthony Sottile
9ebda91889
Merge pull request #2980 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-08-29 11:15:54 -04:00
pre-commit-ci[bot]
3dd1875df8
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-autopep8: v2.0.2 → v2.0.4](https://github.com/pre-commit/mirrors-autopep8/compare/v2.0.2...v2.0.4 )
2023-08-29 05:38:11 +00:00
Anthony Sottile
bde292b510
Merge pull request #2972 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-08-22 09:09:16 -04:00
pre-commit-ci[bot]
a4ae868633
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.5.0 → v1.5.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.5.0...v1.5.1 )
2023-08-22 06:16:21 +00:00
Anthony Sottile
0c3d605fa0
Merge pull request #2971 from chriskuehl/fix-signal-death
...
Fix exit code for commands terminated by signals
2023-08-21 21:30:11 -04:00
Chris Kuehl
5a4b5b1f8e
Fix exit code for commands terminated by signals
...
Fixes https://github.com/pre-commit/pre-commit/issues/2970
2023-08-21 20:02:27 -05:00
Anthony Sottile
a1f1d19156
Merge pull request #2961 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-08-15 10:19:29 -04:00
pre-commit-ci[bot]
93b1a14402
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.4.1 → v1.5.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.4.1...v1.5.0 )
2023-08-15 06:03:09 +00:00
Anthony Sottile
23df082edc
Merge pull request #2958 from fangfufu/typo-fix
...
fix typo in CONTRIBUTING.md
2023-08-14 18:01:42 -04:00
Fufu Fang
1803db979f
fix typo in CONTRIBUTING.md
2023-08-14 11:00:17 +01:00
Anthony Sottile
b2ff5e401b
Merge pull request #2949 from pre-commit/asottile-patch-1
...
update hello world go test
2023-08-01 12:17:31 -04:00
Anthony Sottile
8c75a26f2d
update hello world go test
2023-08-01 12:08:52 -04:00
Anthony Sottile
13b673ce3c
Merge pull request #2946 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-08-01 11:56:47 -04:00
pre-commit-ci[bot]
3557077bbc
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/add-trailing-comma: v3.0.0 → v3.0.1](https://github.com/asottile/add-trailing-comma/compare/v3.0.0...v3.0.1 )
- [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.9.0...v3.10.1 )
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0 )
2023-08-01 07:08:53 +00:00
Anthony Sottile
2bffc0ad85
Merge pull request #2932 from alunduil/haskell-language
...
Add haskell language support to pre-commit.
2023-07-22 16:39:17 -04:00
Alex Brandt
60273ca81e
Add haskell language support to pre-commit.
2023-07-22 16:28:48 -04:00
Anthony Sottile
f8488e36c8
Merge pull request #2929 from pre-commit/s#helper#lang_base#g
...
`s/helpers/lang_base/g` in docs
2023-07-17 13:47:20 -04:00
Max R
d537c09032
s/helpers/lang_base/g
2023-07-17 09:36:47 -04:00
Anthony Sottile
9660d3b451
Merge pull request #2927 from pre-commit/mxr-patch-1
...
Fix link to `language` API
2023-07-16 16:51:06 -04:00
Max R
5e4af63e85
Fix link to language API
2023-07-16 15:00:55 -04:00
Anthony Sottile
4f73b8a2af
Merge pull request #2924 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-07-11 06:28:48 -04:00
pre-commit-ci[bot]
9bf6856db3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.8.0 → v3.9.0](https://github.com/asottile/pyupgrade/compare/v3.8.0...v3.9.0 )
2023-07-11 05:21:22 +00:00
Anthony Sottile
8bf22bd3c1
Merge pull request #2917 from pre-commit/py38-shelx-join
...
shlex.join is always available in 3.8+
2023-07-01 17:33:28 -04:00
Anthony Sottile
1c439b5a79
shlex.join is always available in 3.8+
2023-07-01 17:22:42 -04:00
Anthony Sottile
3126802bf4
Merge pull request #2916 from pre-commit/all-repos_autofix_add-trailing-comma-3
...
updates for add-trailing-comma 3.x
2023-07-01 16:57:16 -04:00
Anthony Sottile
e72699b9ef
updates for add-trailing-comma 3.x
...
Committed via https://github.com/asottile/all-repos
2023-07-01 16:47:06 -04:00
Anthony Sottile
8891089cf5
Merge pull request #2914 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-06-27 00:12:59 -04:00
pre-commit-ci[bot]
854f698531
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.3.0...v1.4.1 )
2023-06-27 03:51:58 +00:00
Anthony Sottile
c25ea47cf7
Merge pull request #2908 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-06-20 19:13:54 -07:00
pre-commit-ci[bot]
f94744a699
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder-python-imports: v3.9.0 → v3.10.0](https://github.com/asottile/reorder-python-imports/compare/v3.9.0...v3.10.0 )
- [github.com/asottile/pyupgrade: v3.6.0 → v3.7.0](https://github.com/asottile/pyupgrade/compare/v3.6.0...v3.7.0 )
2023-06-20 04:33:31 +00:00
Anthony Sottile
5da4258b17
v3.3.3
2023-06-13 19:11:02 -04:00
Anthony Sottile
e891f8606e
Merge pull request #2905 from jaysoffian/fix-gem-install
...
Force gem installation into envdir
2023-06-13 19:09:34 -04:00
pre-commit-ci[bot]
50b1511a5b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-06-13 22:04:03 +00:00
Jay Soffian
9a7ed8be09
Force gem installation into envdir
...
RubyGems allows OS packagers to specify defaults for `--install-dir`
and `--bindir` and these take precedence over `GEM_HOME`. The only way
to override the defaults is to explicitly specify the options ourselves
when running `gem install`.
Examples of OSes where this is the case are RedHat 9.2 and Gentoo.
Fixes #2799 .
2023-06-13 18:03:52 -04:00
Anthony Sottile
f073f8e13c
Merge pull request #2904 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-06-13 04:49:13 -04:00
pre-commit-ci[bot]
1fc28903ab
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/add-trailing-comma: v2.4.0 → v2.5.1](https://github.com/asottile/add-trailing-comma/compare/v2.4.0...v2.5.1 )
- [github.com/asottile/pyupgrade: v3.4.0 → v3.6.0](https://github.com/asottile/pyupgrade/compare/v3.4.0...v3.6.0 )
2023-06-13 03:58:21 +00:00
Anthony Sottile
c7f472d176
Merge pull request #2903 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-06-06 00:00:19 -04:00
pre-commit-ci[bot]
5d273951e0
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-06-06 03:14:27 +00:00
pre-commit-ci[bot]
f88cc61256
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v2.2.0 → v2.3.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.2.0...v2.3.0 )
2023-06-06 03:14:12 +00:00
Anthony Sottile
c716de12f7
Merge pull request #2901 from pre-commit/all-repos_autofix_all-repos-sed
...
fix tags trigger for github actions
2023-06-01 19:29:26 -04:00
Anthony Sottile
f4a2d52bb4
fix tags trigger for github actions
...
the old syntax worked for azure pipelines but not GHA
Committed via https://github.com/asottile/all-repos
2023-06-01 19:12:46 -04:00
Anthony Sottile
8034430539
Merge pull request #2889 from pre-commit/zipapp-make-standalone
...
use distlib inside the zipapp docker image
2023-05-17 16:15:56 -07:00
Anthony Sottile
18348f5d0d
use distlib inside the zipapp docker image
2023-05-17 18:58:11 -04:00
Anthony Sottile
a0a734750e
v3.3.2
2023-05-17 18:36:52 -04:00
Anthony Sottile
bcd8274e1c
Merge pull request #2885 from lorenzwalthert/avoid-quote-write-to-tempfile
...
More robust R hooks for Windows
2023-05-17 15:20:36 -07:00
Lorenz Walthert
cd09c3525e
avoid quoting and escaping while installing R hooks by writing code to tempfile instead of execute R code inline
2023-05-17 18:00:00 -04:00
Anthony Sottile
c389ac0ba8
Merge pull request #2886 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-05-16 07:51:08 -07:00
pre-commit-ci[bot]
64985bd63d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.2.0 → v1.3.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.2.0...v1.3.0 )
2023-05-16 03:20:34 +00:00
Anthony Sottile
f5a98eb152
Merge pull request #2883 from pre-commit/install-swift-not-needed
...
swift is included in github actions
2023-05-13 17:50:47 -07:00
Anthony Sottile
08b670ff9e
swift is included in github actions
2023-05-13 16:37:02 -07:00
Anthony Sottile
72b7b53ae3
Merge pull request #2884 from pre-commit/typo
...
fix typo in testing/languages
2023-05-13 13:39:56 -07:00
Anthony Sottile
9c2a01186b
fix typo in testing/languages
2023-05-13 16:27:14 -04:00
Anthony Sottile
ee49d4289f
Merge pull request #2882 from pre-commit/languages-always-run
...
make some files trigger all languages
2023-05-13 13:19:21 -07:00
Anthony Sottile
926071b6a7
make some files trigger all languages
2023-05-13 16:03:14 -04:00
Anthony Sottile
0deb445a73
Merge pull request #2881 from pre-commit/r-does-not-support-language-version
...
r does not support language_version currently
2023-05-13 12:54:10 -07:00
Anthony Sottile
8923fa368a
r does not support language_version currently
2023-05-13 15:46:34 -04:00
Anthony Sottile
cf3e826070
Merge pull request #2879 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-05-09 08:40:54 -04:00
pre-commit-ci[bot]
1dd85c904e
[pre-commit.ci] pre-commit autoupdate
...
updates:
- https://github.com/asottile/reorder_python_imports → https://github.com/asottile/reorder-python-imports
- [github.com/asottile/pyupgrade: v3.3.2 → v3.4.0](https://github.com/asottile/pyupgrade/compare/v3.3.2...v3.4.0 )
2023-05-09 04:04:18 +00:00
Anthony Sottile
51104fa94a
v3.3.1
2023-05-02 10:07:25 -04:00
Anthony Sottile
0fd2501503
Merge pull request #2866 from pre-commit/autoupdate-hack-windows
...
add partial clone hack to fix autoupdate for windows
2023-05-02 10:05:33 -04:00
Anthony Sottile
420a15f87e
add partial clone hack to fix autoupdate for windows
2023-05-02 09:54:25 -04:00
Anthony Sottile
4c0623963f
v3.3.0
2023-05-01 18:23:50 -04:00
Anthony Sottile
5df9eb9d66
Merge pull request #2863 from pre-commit/parallel-autoupdate
...
add --jobs option to autoupdate
2023-04-29 15:57:36 -04:00
Anthony Sottile
ddbee32ad0
add --jobs option to autoupdate
2023-04-29 15:42:01 -04:00
Anthony Sottile
bab5f70a38
Merge pull request #2861 from pre-commit/autoupdate-without-store
...
perform autoupdate without Store contention
2023-04-29 15:41:45 -04:00
Anthony Sottile
4f045cbc21
perform autoupdate without Store contention
2023-04-29 15:32:20 -04:00
Anthony Sottile
27d77fc8bc
Merge pull request #2860 from pre-commit/autoupdate-dash-C
...
use -C for git commands in autoupdate
2023-04-29 15:24:41 -04:00
Anthony Sottile
e885f2e76e
use -C for git commands in autoupdate
2023-04-29 15:12:51 -04:00
Anthony Sottile
148df0d718
Merge pull request #2859 from pre-commit/blobless-clone
...
use blobless clone for faster autoupdate
2023-04-29 13:37:20 -04:00
Anthony Sottile
4727922b93
use blobless clone for faster autoupdate
2023-04-29 13:29:00 -04:00
Anthony Sottile
5cd99d81ad
Merge pull request #2846 from jalessio/upgrade-to-ruby-build-v20230330
...
Upgrade to ruby-build v20230330
2023-04-29 13:03:19 -04:00
Anthony Sottile
8656797c78
Merge pull request #2854 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-04-25 00:53:45 -04:00
pre-commit-ci[bot]
6f941298a4
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.3.1 → v3.3.2](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.3.2 )
2023-04-25 03:20:55 +00:00
Jamie Alessio
cfcb88364e
Upgrade to ruby-build v20230330
2023-04-18 10:58:57 -07:00
Anthony Sottile
6896025288
Merge pull request #2843 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-04-12 16:07:39 -04:00
pre-commit-ci[bot]
f5a716f1b1
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.2.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.2.0 )
2023-04-11 02:57:43 +00:00
Anthony Sottile
5027592625
v3.2.2
2023-04-03 16:31:09 -04:00
Anthony Sottile
597bf7caf8
Merge pull request #2836 from edelabar/main
...
Change deprecated `swift build` `-C` command line option to replacement `--package-path`
2023-04-03 16:25:11 -04:00
Eric DeLabar
84f040f58a
fix #2235
2023-04-03 15:50:55 -04:00
Anthony Sottile
bb49560dc9
v3.2.1
2023-03-25 14:02:57 -04:00
Anthony Sottile
0477abd3ce
Merge pull request #2827 from pre-commit/cargo-home-during-rustup
...
set CARGO_HOME while executing rustup
2023-03-25 14:00:25 -04:00
Anthony Sottile
ee71a9345c
set CARGO_HOME while executing rustup
2023-03-25 13:06:22 -04:00
Anthony Sottile
df2cada973
v3.2.0
2023-03-17 14:26:34 -04:00
Anthony Sottile
fdb9ede460
Merge pull request #2820 from pre-commit/clear-rust-registry-cache
...
don't set CARGO_HOME in rust
2023-03-17 13:08:37 -04:00
Anthony Sottile
a412e5492d
don't set CARGO_HOME in rust
...
this adds a 270 MB registry cache in the output
2023-03-17 12:55:34 -04:00
Anthony Sottile
d5f919e72f
Merge pull request #2815 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-03-14 00:57:29 -04:00
pre-commit-ci[bot]
7a7772fcda
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.0.1 → v1.1.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.1...v1.1.1 )
2023-03-14 03:19:10 +00:00
Anthony Sottile
4caea677c6
Merge pull request #2809 from m-rsha/move-slow-repository-tests
...
move slowest python-specific tests out of repository_test
2023-03-12 11:11:04 -04:00
marsha
d3c0a66d23
move slowest python-specific tests out of repository_test
2023-03-12 08:24:38 -05:00
Anthony Sottile
950451e1ef
Merge pull request #2725 from mgaligniana/issue-2582
...
Add pre-rebase hook support
2023-03-11 15:26:52 -05:00
Marcelo Galigniana
f39154f69f
Add pre-rebase hook support
2023-03-11 15:17:42 -05:00
Anthony Sottile
f2661bfc31
Merge pull request #2808 from pre-commit/hook-stage-and-type-match
...
make --hook-type and stages match
2023-03-11 14:51:16 -05:00
Anthony Sottile
e3e17a1617
make --hook-type and stages match
2023-03-11 14:26:14 -05:00
Anthony Sottile
02e9680a46
Merge pull request #2805 from pre-commit/durations
...
show 20 slowest durations in CI
2023-03-09 11:12:00 -05:00
Anthony Sottile
8ab9747b33
show 20 slowest durations in CI
2023-03-09 11:00:31 -05:00
Anthony Sottile
321a90e0a1
Merge pull request #2798 from m-rsha/spargs-test
...
rewrite `args with spaces` test to not require python
2023-03-09 09:48:17 -05:00
marsha
63a180a935
rewrite args with spaces test to not require python
2023-03-09 00:41:27 -06:00
Anthony Sottile
fe73f519c7
Merge pull request #2801 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-03-06 22:01:43 -05:00
pre-commit-ci[bot]
0616c0abf7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-autopep8: v2.0.1 → v2.0.2](https://github.com/pre-commit/mirrors-autopep8/compare/v2.0.1...v2.0.2 )
2023-03-07 02:52:32 +00:00
Anthony Sottile
321685ee0e
Merge pull request #2796 from m-rsha/os-name
...
prefer `sys.platform` over `os.name` when checking for windows OS
2023-03-04 01:20:22 -05:00
marsha
5ce4a549d3
prefer sys.platform over os.name when checking for windows OS
2023-03-03 22:13:07 -06:00
Anthony Sottile
2822de9aa6
v3.1.1
2023-02-27 21:07:23 -05:00
Anthony Sottile
7f386a752e
Merge pull request #2788 from pre-commit/rustup-home-temporary
...
set RUSTUP_HOME when using a non-system rust
2023-02-27 21:02:12 -05:00
Anthony Sottile
2700a7d622
set RUSTUP_HOME when using a non-system rust
2023-02-27 20:49:22 -05:00
Anthony Sottile
294590fd12
v3.1.0
2023-02-22 20:53:02 -05:00
Anthony Sottile
7bfa7e15c6
Merge pull request #2776 from pre-commit/unsorted-additional-deps
...
remove sorting for repo key for additional_deps
2023-02-22 20:42:44 -05:00
Anthony Sottile
a631abdabf
remove sorting for repo key for additional_deps
...
in other languages this order can matter (such as ruby)
2023-02-22 20:31:14 -05:00
Anthony Sottile
cdd360645a
Merge pull request #2775 from pre-commit/called-process-error-trailing-whitespace
...
fix trailing whitespace in CalledProcessError output
2023-02-21 13:02:50 -05:00
Anthony Sottile
4ded56efac
fix trailing whitespace in CalledProcessError output
2023-02-21 12:42:09 -05:00
Anthony Sottile
192be6079b
Merge pull request #2774 from pre-commit/diff-must-succeed
...
only treat exit code 1 as a successful diff
2023-02-21 12:30:33 -05:00
Anthony Sottile
cddc9cff0f
only treat exit code 1 as a successful diff
2023-02-21 12:20:25 -05:00
Anthony Sottile
8ba9bc6d89
Merge pull request #2768 from pre-commit/per-language-tests
...
test languages only when they are changed
2023-02-21 11:31:14 -05:00
Anthony Sottile
08fa5ffc43
make a change to trigger the language tests
2023-02-21 11:11:44 -05:00
Anthony Sottile
9655158d93
test languages only when they are changed
2023-02-21 11:11:44 -05:00
Anthony Sottile
1054afd978
Merge pull request #2772 from pre-commit/run-language-for-repository-test
...
use run_language for repository_test
2023-02-20 22:49:55 -05:00
Anthony Sottile
d23990cc8b
use run_language for repository_test
2023-02-20 22:21:31 -05:00
Anthony Sottile
51b14c2b37
Merge pull request #2771 from pre-commit/ruby-is-the-only-bytesio
...
resources_bytesio is only used by ruby
2023-02-20 22:17:20 -05:00
Anthony Sottile
4666b6956f
Merge pull request #2770 from pre-commit/lang_base_unit_tests
...
improve unit test coverage of lang_base
2023-02-20 21:59:10 -05:00
Anthony Sottile
8d84a7a270
resources_bytesio is only used by ruby
2023-02-20 21:47:01 -05:00
Anthony Sottile
ccbf15150f
Merge pull request #2769 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-02-20 21:39:08 -05:00
Anthony Sottile
25b8ad7528
improve unit test coverage of lang_base
2023-02-20 21:32:32 -05:00
pre-commit-ci[bot]
0cc2856883
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v1.0.0 → v1.0.1](https://github.com/pre-commit/mirrors-mypy/compare/v1.0.0...v1.0.1 )
2023-02-21 02:06:17 +00:00
Anthony Sottile
4f6ba18cad
Merge pull request #2767 from pre-commit/test-more-directly
...
test things more directly to improve coverage
2023-02-20 18:52:11 -05:00
Anthony Sottile
c3402e6648
Merge pull request #2766 from pre-commit/move-language-helpers
...
move languages.all and languages.helpers out of languages
2023-02-20 18:34:59 -05:00
Anthony Sottile
c3613b954a
test things more directly to improve coverage
2023-02-20 18:18:08 -05:00
Anthony Sottile
d3883ce7f7
move languages.all and languages.helpers out of languages
2023-02-20 18:03:45 -05:00
Anthony Sottile
5bc56889e9
Merge pull request #2761 from m-rsha/test-pygrep
...
test pygrep inline
2023-02-18 18:20:42 -05:00
marsha
a2373d0a81
test pygrep inline
2023-02-18 17:54:44 -05:00
Anthony Sottile
f5ec578647
Merge pull request #2763 from m-rsha/dotnet-output
...
future-proof dotnet build command
2023-02-18 16:39:39 -05:00
marsha
8db5aaf4f3
future-proof dotnet build command
...
see https://github.com/dotnet/sdk/issues/30624#issuecomment-1435457318
2023-02-17 21:34:24 -06:00
Anthony Sottile
8afe5958e6
Merge pull request #2760 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2023-02-13 22:57:43 -05:00
pre-commit-ci[bot]
ea2569027b
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.991 → v1.0.0](https://github.com/pre-commit/mirrors-mypy/compare/v0.991...v1.0.0 )
2023-02-14 02:25:01 +00:00
Anthony Sottile
8f2dfce5d1
Merge pull request #2756 from m-rsha/test-fail
...
test fail language inline
2023-02-13 18:30:00 -05:00
marsha
4fdfb25a52
test fail language inline
2023-02-13 17:03:59 -06:00
Anthony Sottile
4bd1677cda
do template links need about?
2023-02-08 11:23:43 -05:00
Anthony Sottile
16869444ca
git mv .github/ISSUE_TEMPLATE/config.{yaml,yml}
2023-02-08 11:21:50 -05:00
Anthony Sottile
5635079373
force the issue template more
2023-02-08 11:20:30 -05:00
Anthony Sottile
c5fc8627be
Merge pull request #2752 from adamchainz/document_go_first_class
...
List golang as first-class language
2023-02-08 08:20:07 -05:00
Adam Johnson
abbfb2e9b9
List golang as first-class language
2023-02-08 06:43:04 +00:00
Anthony Sottile
4d970de329
Merge pull request #2751 from m-rsha/test-dotnet
...
test dotnet directly
2023-02-07 23:17:00 -05:00
marsha
915b930a5d
test dotnet directly
2023-02-07 21:47:26 -06:00
Anthony Sottile
97c7870f89
Merge pull request #2713 from m-rsha/test-go
...
test golang directly
2023-02-06 18:40:14 -05:00
marsha
6804100701
test golang directly
2023-02-06 17:02:20 -06:00
Anthony Sottile
f7df13f3d8
Merge pull request #2747 from pre-commit/docker-tests
...
test docker and docker_image directly
2023-02-04 17:51:28 -05:00
Anthony Sottile
0afb95ccca
test docker and docker_image directly
2023-02-04 17:22:06 -05:00
Anthony Sottile
b609368ca5
Merge pull request #2746 from pre-commit/deprecate-python-venv
...
deprecate python_venv language
2023-02-04 14:58:35 -05:00
Anthony Sottile
0c1267b214
deprecate python_venv language
2023-02-04 14:26:09 -05:00
Anthony Sottile
0359fae2da
v3.0.4
2023-02-03 12:07:23 -05:00
Anthony Sottile
cc7bf965eb
Merge pull request #2743 from adamchainz/issue_2742
...
Add `--no-textconv` to `git diff` calls
2023-02-03 12:05:56 -05:00
Adam Johnson
7783a3e63a
Add --no-textconv to git diff calls
2023-02-03 15:56:11 +00:00
Anthony Sottile
e846829992
v3.0.3
2023-02-01 18:21:18 -05:00
Anthony Sottile
bfe1a72734
Merge pull request #2740 from pre-commit/gem-file-bleh
...
Revert "also ignore Gemfile in project"
2023-02-01 18:19:39 -05:00
Anthony Sottile
1129e7d222
fixup Gemfile in ruby tests
2023-02-01 18:17:24 -05:00
Anthony Sottile
7260d24d0f
Revert "also ignore Gemfile in project"
...
This reverts commit f4bd44996c .
2023-02-01 18:17:24 -05:00
Anthony Sottile
9868b1a347
Merge pull request #2741 from pre-commit/golang-1-20
...
fix golang version regex in test
2023-02-01 18:16:54 -05:00
Anthony Sottile
d216cdd5c1
fix golang version regex in test
2023-02-01 18:16:09 -05:00
Anthony Sottile
c2e432cdf6
Merge pull request #2736 from pre-commit/node-tests
...
test node directly
2023-01-31 21:40:03 -05:00
Anthony Sottile
909dd0e8a1
test node directly
2023-01-31 21:13:11 -05:00
Anthony Sottile
3c2ca11332
Merge pull request #2737 from pre-commit/health-check-after-create
...
ensure languages are healthy after creation
2023-01-31 21:12:56 -05:00
Anthony Sottile
2530913fad
ensure languages are healthy after creation
2023-01-31 20:40:19 -05:00
Anthony Sottile
650afe4ffa
Merge pull request #2735 from pre-commit/fast-checkout
...
upgrade asottile/workflows to get fast-checkout
2023-01-30 23:35:09 -05:00
Anthony Sottile
f54386203e
upgrade asottile/workflows to get fast-checkout
2023-01-30 23:04:25 -05:00
Anthony Sottile
50cf02764c
Merge pull request #2733 from pre-commit/test-ruby
...
test ruby directly
2023-01-30 22:12:15 -05:00
Anthony Sottile
5b50acbd2c
test ruby directly
2023-01-30 21:36:13 -05:00
Anthony Sottile
77b4ea38ca
Merge pull request #2729 from pre-commit/rust-tests
...
test rust directly
2023-01-29 19:00:09 -05:00
Anthony Sottile
6abb05a60c
v3.0.2
2023-01-29 18:36:45 -05:00
Anthony Sottile
2adca78c6f
test rust directly
2023-01-29 18:27:10 -05:00
Anthony Sottile
2e1cfa8f05
Merge pull request #2728 from pre-commit/fix-r-local-hooks
...
fix r local hooks
2023-01-29 18:26:01 -05:00
Anthony Sottile
420902f67c
fix r local hooks
...
`language: r` acts more like `language: script` so we have to *not* append
the prefix when run with `repo: local`
2023-01-29 17:27:42 -05:00
Anthony Sottile
6eacdd440e
Merge pull request #2726 from pre-commit/pick-better-ruby-version
...
speed up ruby tests by picking a prebuilt in 22.04
2023-01-28 19:06:42 -05:00
Anthony Sottile
6e8051b9e6
speed up ruby tests by picking a prebuilt in 22.04
2023-01-28 18:36:35 -05:00
Anthony Sottile
840cf532a9
Merge pull request #2727 from pre-commit/ignore-gemfile
...
also ignore Gemfile in project
2023-01-28 17:15:48 -05:00
Anthony Sottile
f4bd44996c
also ignore Gemfile in project
...
this starts failing with ruby 3.2.0
2023-01-28 16:44:44 -05:00
Anthony Sottile
dd8e717ed6
v3.0.1
2023-01-26 11:09:17 -05:00
Anthony Sottile
6d3a7eeef5
Merge pull request #2723 from pre-commit/coursier-cache
...
ensure coursier hooks are available offline after install
2023-01-25 17:23:13 -05:00
Anthony Sottile
83e05e607e
ensure coursier hooks are available offline after install
2023-01-25 14:03:39 -05:00
Anthony Sottile
6b88fe577c
v3.0.0
2023-01-23 20:40:13 -05:00
Anthony Sottile
ea88b377d5
Merge pull request #2720 from pre-commit/install-state-v2
...
introduce install state v2 to replace v1
2023-01-23 20:33:49 -05:00
Anthony Sottile
bff5e0e738
introduce install state v2 to replace v1
...
the v1 state is unnecessary since new repos are created for new additional_dependencies
2023-01-23 19:58:48 -05:00
Anthony Sottile
2c39545d24
Merge pull request #2718 from jalessio/jamie/upgrade-to-ruby-build-v20221225
...
Upgrade to ruby-build v20221225
2023-01-23 17:57:14 -05:00
Jamie Alessio
14c38d18fc
Upgrade to ruby-build v20221225
2023-01-21 11:05:13 -08:00
Anthony Sottile
50848aaca2
Merge pull request #2709 from pre-commit/test-lua
...
test lua directly
2023-01-18 00:12:28 -05:00
Anthony Sottile
a0fc6022d7
Merge pull request #2708 from pre-commit/r-tests
...
test r language directly
2023-01-17 23:57:44 -05:00
Anthony Sottile
f042540311
test lua directly
2023-01-17 23:43:31 -05:00
Anthony Sottile
7512e3b7e1
test r language directly
2023-01-17 23:25:00 -05:00
Anthony Sottile
6014ebd2e7
Merge pull request #2707 from pre-commit/dart-tests
...
test dart directly
2023-01-17 19:16:25 -05:00
Anthony Sottile
043565d28a
test dart directly
2023-01-17 18:44:14 -05:00
Anthony Sottile
2bd853e96f
Merge pull request #2706 from pre-commit/perl-tests
...
test perl language directly
2023-01-17 18:01:31 -05:00
Anthony Sottile
d24055cb40
test perl language directly
2023-01-17 17:34:04 -05:00
Anthony Sottile
9a56f8dca0
Merge pull request #2705 from pre-commit/speed-up-r-tests
...
speed up R unit tests
2023-01-17 14:51:00 -05:00
Anthony Sottile
f5a365c2c8
Merge pull request #2704 from pre-commit/swift-language-tests
...
test swift language directly
2023-01-17 14:25:47 -05:00
Anthony Sottile
966c67a832
speed up R unit tests
2023-01-17 14:16:13 -05:00
Anthony Sottile
c36f03cd2e
test swift language directly
2023-01-17 13:51:06 -05:00
Anthony Sottile
a26b631aae
Merge pull request #2703 from pre-commit/conda-language-tests
...
test conda language directly
2023-01-17 13:35:46 -05:00
Anthony Sottile
f1b5f66374
test conda language directly
2023-01-17 13:05:49 -05:00
Anthony Sottile
0316676fdc
Merge pull request #2702 from pre-commit/coursier-additional-deps
...
coursier: additional_dependencies support
2023-01-17 10:31:22 -05:00
Anthony Sottile
70bfd76ced
coursier: additional_dependencies support
2023-01-17 09:59:04 -05:00
Anthony Sottile
59ed51a309
Merge pull request #2701 from pre-commit/run-hook-no-Hook
...
adjust the run_hook api to no longer take Hook
2023-01-16 17:11:10 -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
48ae18a2cb
Merge pull request #2700 from pre-commit/in-env-api
...
make in_env part of the language api
2023-01-16 16:18:18 -05:00
Anthony Sottile
ae34a962d7
make in_env part of the language api
2023-01-16 15:36:29 -05:00
Anthony Sottile
bcf0230772
Merge pull request #2699 from pre-commit/local-no-git
...
the local repo no longer needs to be a git repo
2023-01-15 10:30:28 -05:00
Anthony Sottile
37685a7f42
the local repo no longer needs to be a git repo
2023-01-15 09:56:30 -05:00
Anthony Sottile
87ab767175
Merge pull request #2651 from taoufik07/golang_playground
...
Make Golang a first class language
2023-01-13 13:14:41 -05:00
taoufik07
9afd63948e
Make Go a first class language
2023-01-13 12:42:57 -05:00
Anthony Sottile
ceb429b253
Merge pull request #2686 from pre-commit/migrate-config-invalid-yaml
...
eagerly catch invalid yaml in migrate-config
2023-01-09 13:05:51 -05:00
Anthony Sottile
619f2bf5a9
eagerly catch invalid yaml in migrate-config
2023-01-09 12:31:05 -05:00
Anthony Sottile
dc667ab9fb
Merge pull request #2677 from taoufik07/fix_cmd_norm_env
...
Fix command normalization when a custom env is passed
2023-01-06 10:03:08 -05:00
taoufik07
bf1a1fa5fd
Fix command normalization when a custom env is passed
2023-01-06 09:27:49 -05:00
Anthony Sottile
0dbc154380
Merge pull request #2672 from taoufik07/remove_gopath_special_build
...
Remove `GOPATH` special build
2023-01-02 19:32:08 -05:00
Anthony Sottile
83e64e2071
Merge pull request #2673 from pre-commit/split-util
...
add pre_commit.yaml module
2023-01-02 19:15:57 -05:00
Anthony Sottile
e1567b6148
Merge pull request #2674 from pre-commit/revert-2671-simplify-state
...
Revert "simplify install state"
2023-01-02 19:09:16 -05:00
taoufik07
60a42e9419
Remove GOPATH special build
2023-01-02 18:53:14 -05:00
Anthony Sottile
8529a0c1d3
add pre_commit.yaml module
2023-01-02 18:42:34 -05:00
Anthony Sottile
990643c1e0
Revert "simplify install state"
2023-01-02 18:39:42 -05:00
Anthony Sottile
978e26c544
Merge pull request #2671 from pre-commit/simplify-state
...
simplify install state
2023-01-02 17:30:43 -05:00
Anthony Sottile
0920cb33ee
simplify install state
...
the additional bookkeeping has been unnecessary since b827694520
unfortunately this will cause a rebuild of all hooks in order to be
forward/backward compatible -- shrugs
2023-01-02 16:00:27 -05:00
Anthony Sottile
c787efd558
Merge pull request #2669 from pre-commit/env_dir
...
simplify environment_dir
2023-01-01 21:43:32 -05:00
Anthony Sottile
05c8911363
simplify environment_dir
2023-01-01 21:11:56 -05:00
Anthony Sottile
10f835c501
Merge pull request #2668 from pre-commit/clean-on-failure
...
move clean_path_on_failure out of each hook install
2023-01-01 20:31:02 -05:00
Anthony Sottile
d05b7888ab
move clean_path_on_failure out of each hook install
2023-01-01 20:04:58 -05:00
Anthony Sottile
0224be8194
Merge pull request #2667 from pre-commit/env-dir-always-non-null
...
remove None overload for environment_dir
2023-01-01 19:52:48 -05:00
Anthony Sottile
3d09b66c6b
Merge pull request #2666 from pre-commit/r-dont-use-src
...
avoid using hook.src in R language
2023-01-01 19:34:22 -05:00
Anthony Sottile
f0baffb01f
remove None overload for environment_dir
2023-01-01 19:20:40 -05:00
Anthony Sottile
8e57e8075d
avoid using hook.src in R language
...
this wasn't meant to be read -- hook.prefix works fine for local too
2023-01-01 19:02:20 -05:00
Anthony Sottile
017fa5c0b8
Merge pull request #2665 from pre-commit/move-parse-version
...
move parse_version to pre_commit.clientlib
2023-01-01 17:51:11 -05:00
Anthony Sottile
0cec5bd6f0
Merge pull request #2664 from pre-commit/special-rmtree-no-longer-needed
...
special rmtree is not needed for TemporaryDirectory in 3.8+
2023-01-01 17:51:05 -05:00
Anthony Sottile
5425c754a0
move parse_version to pre_commit.clientlib
2023-01-01 17:17:00 -05:00
Anthony Sottile
0a0754e44a
special rmtree is not needed for TemporaryDirectory in 3.8+
2023-01-01 17:12:28 -05:00
Anthony Sottile
092e9a50ae
Merge pull request #2662 from pre-commit/r-default-gha
...
r is installed by default on GHA
2022-12-30 01:10:13 -05:00
Anthony Sottile
cddaa0dddc
r is installed by default on GHA
2022-12-29 23:48:34 -05:00
Anthony Sottile
21407882fe
Merge pull request #2661 from pre-commit/gha
...
azure pipelines -> github actions
2022-12-29 22:48:25 -05:00
Anthony Sottile
887c5e1142
azure pipelines -> github actions
2022-12-29 22:18:31 -05:00
Anthony Sottile
848a73ed40
Merge pull request #2658 from pre-commit/remove-pre-commit-validate
...
remove pre-commit-validate-config and pre-commit-validate-manifest
2022-12-27 13:53:10 -05:00
Anthony Sottile
4a50859936
remove pre-commit-validate-config and pre-commit-validate-manifest
2022-12-27 13:05:30 -05:00
Anthony Sottile
d33df92add
Merge pull request #2602 from pre-commit/mypy-modules-as-protocols
...
use modules as protocols
2022-12-27 13:04:48 -05:00
Anthony Sottile
def3fa3929
Merge pull request #2657 from pre-commit/remove-sha-support
...
remove support for sha to specify rev
2022-12-27 12:13:26 -05:00
Anthony Sottile
12a979ea75
Merge pull request #2656 from pre-commit/remove-list-format
...
remove support for top-level list format
2022-12-27 12:09:42 -05:00
Anthony Sottile
40e69ce8e3
use modules as protocols
2022-12-27 11:46:11 -05:00
Anthony Sottile
7daceb083b
Merge pull request #2655 from pre-commit/drop-py37
...
drop python<3.8
2022-12-27 11:46:01 -05:00
Anthony Sottile
ff3150d58a
remove support for sha to specify rev
2022-12-27 11:29:00 -05:00
Anthony Sottile
0024484f5b
remove support for top-level list format
2022-12-27 11:15:45 -05:00
Anthony Sottile
524a236072
drop python<3.8
2022-12-27 11:10:31 -05:00
Anthony Sottile
40c5bdad65
v2.21.0
2022-12-25 17:52:05 -05:00
Anthony Sottile
bb27ea32cd
Merge pull request #2642 from rkm/fix/dotnet-nuget-config
...
dotnet: ignore nuget source during tool install
2022-12-21 15:04:41 -05:00
Ruairidh MacLeod
c38e0c7ba8
dotnet: ignore nuget source during tool install
2022-12-21 14:26:13 -05:00
Anthony Sottile
bce513fac6
Merge pull request #2641 from rkm/fix/dotnet-tool-prefix
...
fix for dotnet hooks with prefixes
2022-12-21 14:13:14 -05:00
Ruairidh MacLeod
e904628830
fix dotnet hooks with prefixes
2022-12-21 13:35:19 -05:00
Anthony Sottile
d7b8b123e6
Merge pull request #2646 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-12-19 20:49:15 -05:00
pre-commit-ci[bot]
94b6178906
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-autopep8: v2.0.0 → v2.0.1](https://github.com/pre-commit/mirrors-autopep8/compare/v2.0.0...v2.0.1 )
2022-12-20 00:30:07 +00:00
Anthony Sottile
b474a83463
Merge pull request #2643 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-12-12 21:22:38 -05:00
pre-commit-ci[bot]
a179808bfe
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/add-trailing-comma: v2.3.0 → v2.4.0](https://github.com/asottile/add-trailing-comma/compare/v2.3.0...v2.4.0 )
- [github.com/asottile/pyupgrade: v3.3.0 → v3.3.1](https://github.com/asottile/pyupgrade/compare/v3.3.0...v3.3.1 )
2022-12-13 00:40:31 +00:00
Anthony Sottile
3aa6206e4f
Merge pull request #2605 from lorenzwalthert/r/fix-exe
...
Adapt extension of R executable depending on os
2022-12-12 14:28:54 -05:00
Anthony Sottile
04225fec72
Merge pull request #2628 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-12-12 13:45:07 -05:00
Lorenz Walthert
52948f610c
When R executable is an explicit path, we need to appene .exe on Windows
2022-12-12 13:21:55 -05:00
pre-commit-ci[bot]
6ab7fc25d5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.2.2 → v3.3.0](https://github.com/asottile/pyupgrade/compare/v3.2.2...v3.3.0 )
2022-12-12 13:21:08 -05:00
Anthony Sottile
f9b28cc2b0
Merge pull request #2634 from pre-commit/fix-ci
...
fix CI
2022-12-12 13:02:24 -05:00
Anthony Sottile
b00c31cf9e
use a newer version of ruby which builds cleanly
2022-12-12 12:22:39 -05:00
Anthony Sottile
8cc3a6d8aa
passenv is stupid anyway
2022-12-10 23:45:04 -05:00
Anthony Sottile
b92fe01755
force the -p branch to run for language: python under test
2022-12-10 23:33:20 -05:00
Anthony Sottile
92c70766fd
fix rust coverage on windows
...
it's a complete mystery why this isn't needed on other platforms, the branch is legitimately uncovered there
2022-12-06 17:36:57 -05:00
Anthony Sottile
0b45ecc8a4
remove python 2.x cross version tests
2022-12-06 17:36:57 -05:00
Anthony Sottile
46c64efd9d
update .net framework target
2022-12-06 15:00:06 -05:00
Anthony Sottile
6c524f7a55
fix rust platform detection on windows
2022-12-06 13:10:12 -05:00
Anthony Sottile
5becd50974
update swift for jammy
2022-12-06 13:06:23 -05:00
Anthony Sottile
cb0bcfd67f
Merge pull request #2618 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-11-28 18:43:03 -08:00
pre-commit-ci[bot]
df7bcf78c3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0 )
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](https://github.com/PyCQA/flake8/compare/5.0.4...6.0.0 )
2022-11-29 01:09:52 +00:00
Anthony Sottile
50c217964b
remove obsolete comment
2022-11-27 16:30:58 -05:00
Anthony Sottile
46f7117753
Merge pull request #2601 from pre-commit/all-repos_autofix_no-implicit-optional
...
remove no_implicit_optional
2022-11-22 08:41:28 -05:00
Anthony Sottile
5698781c78
Merge pull request #2608 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-11-21 19:57:42 -05:00
pre-commit-ci[bot]
391d05e2f3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.990 → v0.991](https://github.com/pre-commit/mirrors-mypy/compare/v0.990...v0.991 )
2022-11-21 23:11:57 +00:00
Anthony Sottile
318296d8c5
remove no_implicit_optional
...
this is the default in mypy 0.990
Committed via https://github.com/asottile/all-repos
2022-11-16 19:19:49 -05:00
Anthony Sottile
6a661f8453
Merge pull request #2595 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-11-16 19:07:27 -05:00
pre-commit-ci[bot]
371b4fc1fd
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v3.2.0 → v3.2.2](https://github.com/asottile/pyupgrade/compare/v3.2.0...v3.2.2 )
- [github.com/pre-commit/mirrors-mypy: v0.982 → v0.990](https://github.com/pre-commit/mirrors-mypy/compare/v0.982...v0.990 )
2022-11-14 23:36:47 +00:00
Anthony Sottile
1f59f4cba8
Merge pull request #2590 from m-rsha/add-no-ext-diff
...
Add `--no-ext-diff` to `git diff` call
2022-11-10 21:55:56 -05:00
marsha
4399c2dbc6
Add --no-ext-diff to git diff call
2022-11-10 20:09:56 -06:00
Anthony Sottile
5009f57279
Merge pull request #2576 from mishaschwartz/update-ruby-build-binary
...
Update ruby-build to 20220710 to ensure that the correct openssl version is used
2022-11-07 20:20:11 -05:00
mishaschwartz
97ad4f89ec
ruby: update ruby-build to 20220710 to ensure that the correct openssl version is used
2022-11-07 18:39:24 -05:00
Anthony Sottile
3ca9ea7b98
Merge pull request #2580 from m-rsha/diff-filter
...
Change `intent_to_add_files` from using `git status` to `git diff`
2022-11-02 20:30:01 -04:00
marsha
4bca29ee2c
Change intent_to_add_files from using git status to git diff
2022-11-02 18:59:36 -05:00
Anthony Sottile
5840635baa
Merge pull request #2573 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-10-31 16:32:48 -07:00
pre-commit-ci[bot]
3b3cf8c1f1
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v2.1.0 → v2.2.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.1.0...v2.2.0 )
- [github.com/asottile/reorder_python_imports: v3.8.5 → v3.9.0](https://github.com/asottile/reorder_python_imports/compare/v3.8.5...v3.9.0 )
- [github.com/asottile/pyupgrade: v3.1.0 → v3.2.0](https://github.com/asottile/pyupgrade/compare/v3.1.0...v3.2.0 )
- [github.com/pre-commit/mirrors-autopep8: v1.7.0 → v2.0.0](https://github.com/pre-commit/mirrors-autopep8/compare/v1.7.0...v2.0.0 )
2022-10-31 23:27:34 +00:00
Anthony Sottile
0827de1864
Merge pull request #2569 from m-rsha/cmd-retcode-to-check
...
Change `cmd_output_b`s `retcode` arg to a boolean `check`
2022-10-30 14:24:10 -07:00
marsha
42102a1bfd
Remove expected_returncode from CalledProcessError
2022-10-30 15:31:45 -05:00
marsha
84b38f7b89
Change cmd_output_bs retcode arg to a boolean check
2022-10-30 14:49:42 -05:00
Anthony Sottile
71925c47ea
Merge pull request #2568 from m-rsha/cargler-bargler
...
Change Rust to install environment with `cargo add` over `toml`
2022-10-28 23:13:36 -04:00
marsha
e703982de4
Change Rust to install environment with cargo add over toml
2022-10-28 21:32:52 -05:00
Anthony Sottile
5c9e844104
Merge pull request #2564 from mattp-/main
...
allow GIT_ASKPASS as a pass through env var
2022-10-27 16:39:14 -04:00
Matt Phillips
8ebb7ae2f5
add GIT_ASKPASS as a passthrough env var
...
documented via man gitcredentials, it is used to provide a script/input
for git to fetch creds in a no-tty usecase.
used among other things by jenkins to pass credentials down to git for
authentication.
1e3488a730/README.adoc (git-bindings)
9429e7d05d/src/main/java/jenkins/plugins/git/GitUsernamePasswordBinding.java (L130)
2022-10-27 15:55:31 -04:00
Anthony Sottile
7ac2dbeee0
Merge pull request #2555 from pre-commit/fix-tests
...
fix tests for submodules for CVE-2022-39253
2022-10-22 15:06:31 -07:00
Anthony Sottile
0fe7a0baa6
Merge pull request #2460 from lorenzwalthert/binary-additional-deps
...
Enforce binary installs also for dependencies in R
2022-10-22 11:28:13 -07:00
Anthony Sottile
bc96b0bcf6
fix tests for submodules for CVE-2022-39253
2022-10-22 09:34:43 -07:00
Anthony Sottile
0239b27f4f
Merge pull request #2552 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-10-17 19:32:11 -04:00
pre-commit-ci[bot]
f9532fb59a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v2.0.0 → v2.1.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.0.0...v2.1.0 )
- [github.com/asottile/reorder_python_imports: v3.8.4 → v3.8.5](https://github.com/asottile/reorder_python_imports/compare/v3.8.4...v3.8.5 )
2022-10-17 23:10:12 +00:00
Anthony Sottile
529b1a60e9
Merge pull request #2534 from Holzhaus/rust-as-1st-class-language
...
Rust as 1st class language
2022-10-10 17:35:21 -07:00
Jan Holthuis
eb469c756d
Rust as 1st class language
2022-10-10 20:05:36 -04:00
Anthony Sottile
cd38fa3507
Merge pull request #2547 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-10-10 17:03:25 -07:00
pre-commit-ci[bot]
3d4f6db2a0
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.8.3 → v3.8.4](https://github.com/asottile/reorder_python_imports/compare/v3.8.3...v3.8.4 )
- [github.com/asottile/pyupgrade: v2.38.2 → v3.1.0](https://github.com/asottile/pyupgrade/compare/v2.38.2...v3.1.0 )
- [github.com/pre-commit/mirrors-mypy: v0.981 → v0.982](https://github.com/pre-commit/mirrors-mypy/compare/v0.981...v0.982 )
2022-10-10 23:49:52 +00:00
Anthony Sottile
028efcbd87
Merge pull request #2539 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-10-03 19:13:54 -04:00
pre-commit-ci[bot]
68be295b75
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.971 → v0.981](https://github.com/pre-commit/mirrors-mypy/compare/v0.971...v0.981 )
2022-10-03 22:51:41 +00:00
Anthony Sottile
495b5991cf
"yes" is not a valid search
2022-09-29 16:51:19 -04:00
Anthony Sottile
653d15504e
Merge pull request #2528 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-09-26 19:21:58 -04:00
Anthony Sottile
3610087fab
Merge pull request #2527 from chrisRedwine/remove-extraneous-raw-string-literal
...
remove extraneous raw string literal in test
2022-09-26 18:59:37 -04:00
pre-commit-ci[bot]
404f2dccd5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.8.2 → v3.8.3](https://github.com/asottile/reorder_python_imports/compare/v3.8.2...v3.8.3 )
- [github.com/asottile/add-trailing-comma: v2.2.3 → v2.3.0](https://github.com/asottile/add-trailing-comma/compare/v2.2.3...v2.3.0 )
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2 )
2022-09-26 22:58:40 +00:00
chrisRedwine
6d5de9feaf
remove extraneous raw string literal in test
2022-09-26 17:53:14 -05:00
Anthony Sottile
102fbb21ce
Merge pull request #2524 from chrisRedwine/fix-local-regex-warnings
...
extend warning if globs are used instead of regex to local hooks
2022-09-26 12:52:13 -04:00
chrisRedwine
a95f488e71
extend warning if globs are used instead of regex to local hooks
2022-09-25 11:56:04 -05:00
Anthony Sottile
b1de3338ef
Merge pull request #2519 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-09-19 18:35:13 -05:00
pre-commit-ci[bot]
fb608ee1b4
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.37.3 → v2.38.0](https://github.com/asottile/pyupgrade/compare/v2.37.3...v2.38.0 )
2022-09-19 22:48:22 +00:00
Anthony Sottile
3fe38dff05
Merge pull request #2485 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-08-15 17:23:45 -04:00
Anthony Sottile
51e6d655b8
Merge pull request #2484 from pre-commit/allow-files-when-unmerged
...
allow `pre-commit run --files ...` against unmerged files
2022-08-15 17:23:40 -04:00
pre-commit-ci[bot]
7a62bf7be2
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-autopep8: v1.6.0 → v1.7.0](https://github.com/pre-commit/mirrors-autopep8/compare/v1.6.0...v1.7.0 )
2022-08-15 21:15:11 +00:00
Anthony Sottile
2405caa352
allow pre-commit run --files ... against unmerged files
2022-08-15 13:46:17 -04:00
Anthony Sottile
6740a1795c
Merge pull request #2480 from imc-trading/fix-skip-alias
...
respect aliases in SKIP when installing environments
2022-08-11 16:50:15 -04:00
Mark Korondi
587c6b97e7
respect aliases in SKIP when installing environments
2022-08-11 09:30:39 +02:00
Anthony Sottile
49f95b9ef3
Merge pull request #2475 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-08-08 18:52:59 -04:00
pre-commit-ci[bot]
317c9e037a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 5.0.2 → 5.0.4](https://github.com/PyCQA/flake8/compare/5.0.2...5.0.4 )
2022-08-08 22:24:53 +00:00
Anthony Sottile
9c55cc3954
Merge pull request #2474 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-08-01 20:06:48 -04:00
pre-commit-ci[bot]
d4b73c9e88
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-08-01 22:41:21 +00:00
pre-commit-ci[bot]
3e920b5ba7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v1.20.2 → v2.0.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.20.2...v2.0.0 )
- [github.com/asottile/pyupgrade: v2.37.2 → v2.37.3](https://github.com/asottile/pyupgrade/compare/v2.37.2...v2.37.3 )
- [github.com/PyCQA/flake8: 4.0.1 → 5.0.2](https://github.com/PyCQA/flake8/compare/4.0.1...5.0.2 )
2022-08-01 22:40:58 +00:00
Anthony Sottile
77d9b4651f
Merge pull request #2466 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-25 19:57:05 -04:00
Anthony Sottile
9ee8c51edc
Merge pull request #2467 from pre-commit/asottile-patch-1
...
require a version of virtualenv which is less broken in 3.10+
2022-07-25 19:56:57 -04:00
Anthony Sottile
f4e658fc6e
require a version of virtualenv which is less broken in 3.10+
2022-07-25 19:29:09 -04:00
pre-commit-ci[bot]
a8bfaab091
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v1.20.1 → v1.20.2](https://github.com/asottile/setup-cfg-fmt/compare/v1.20.1...v1.20.2 )
- [github.com/asottile/reorder_python_imports: v3.8.1 → v3.8.2](https://github.com/asottile/reorder_python_imports/compare/v3.8.1...v3.8.2 )
- [github.com/asottile/pyupgrade: v2.37.1 → v2.37.2](https://github.com/asottile/pyupgrade/compare/v2.37.1...v2.37.2 )
- [github.com/pre-commit/mirrors-mypy: v0.961 → v0.971](https://github.com/pre-commit/mirrors-mypy/compare/v0.961...v0.971 )
2022-07-25 21:46:05 +00:00
Anthony Sottile
c1e0836d6b
Merge pull request #2459 from pre-commit/relative-commit-msg-filename
...
adjust relative --commit-msg-filename if in subdir
2022-07-23 16:49:07 -04:00
Lorenz Walthert
a568f3c818
enforce binary installs also for dependencies of R packages
...
Similar problem seems to be found in https://github.com/r-lib/devtools/issues/1724
2022-07-12 22:47:19 +01:00
Lorenz Walthert
7c14405f8b
just bump failing CI
2022-07-12 22:44:31 +01:00
Anthony Sottile
db51d3009f
adjust relative --commit-msg-filename if in subdir
2022-07-12 14:08:57 -04:00
Anthony Sottile
bdc08d8285
Merge pull request #2455 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-11 18:01:24 -04:00
pre-commit-ci[bot]
0cef48edbf
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.3.0 → v3.8.1](https://github.com/asottile/reorder_python_imports/compare/v3.3.0...v3.8.1 )
- [github.com/asottile/pyupgrade: v2.34.0 → v2.37.1](https://github.com/asottile/pyupgrade/compare/v2.34.0...v2.37.1 )
2022-07-11 21:25:15 +00:00
Anthony Sottile
78a2d867fe
v2.20.0
2022-07-10 20:55:02 -04:00
Anthony Sottile
e3dc5b7baf
Merge pull request #2454 from pre-commit/asottile-patch-1
...
remove warnings checks
2022-07-10 14:49:44 -04:00
Anthony Sottile
ebce88c13d
remove warnings checks
...
this wasn't all that useful -- and most of it was for checking python 2 things
2022-07-10 14:20:14 -04:00
Anthony Sottile
d6cc8a1419
Merge pull request #2453 from hroncok/python3.11
...
Tests: Adjust traceback regexes to allow Python 3.11+ ^^^^^^^
2022-07-09 20:30:59 -04:00
Miro Hrončok
901e831313
Tests: Adjust traceback regexes to allow Python 3.11+ ^^^^^^^
...
Fixes https://github.com/pre-commit/pre-commit/issues/2451
2022-07-10 02:03:56 +02:00
Anthony Sottile
98bb7e6630
Merge pull request #2440 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-04 18:33:56 -04:00
Anthony Sottile
706d1e9929
Merge pull request #2439 from pre-commit/all-repos_autofix_type-checking
...
remove imports from TYPE_CHECKING (py37+)
2022-07-04 18:33:51 -04:00
pre-commit-ci[bot]
3ebd101eb5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.1.0 → v3.3.0](https://github.com/asottile/reorder_python_imports/compare/v3.1.0...v3.3.0 )
2022-07-04 21:58:49 +00:00
Anthony Sottile
d8b59300ce
remove imports from TYPE_CHECKING (py37+)
...
Committed via https://github.com/asottile/all-repos
2022-07-04 17:57:38 -04:00
Anthony Sottile
170335cbb6
Merge pull request #2429 from pre-commit/remove-config-option-when-unused
...
remove unused --config options from commands which don't use it
2022-06-22 23:24:27 -04:00
Anthony Sottile
53643def07
remove unused --config options from commands which don't use it
2022-06-22 16:06:15 -07:00
Anthony Sottile
c69ae26c1f
Merge pull request #2421 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-06-13 18:47:43 -04:00
pre-commit-ci[bot]
efc1d059fa
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0 )
- [github.com/asottile/pyupgrade: v2.32.1 → v2.34.0](https://github.com/asottile/pyupgrade/compare/v2.32.1...v2.34.0 )
- [github.com/pre-commit/mirrors-mypy: v0.960 → v0.961](https://github.com/pre-commit/mirrors-mypy/compare/v0.960...v0.961 )
2022-06-13 21:57:06 +00:00
Anthony Sottile
4738d06e71
Merge pull request #2407 from M-Whitaker/main
...
Expose prepare-commit-msg arguments as environment vars
2022-06-11 14:56:13 -04:00
Matt Whitaker
702ebf402c
Expose prepare-commit-msg arguments as environment vars
2022-06-11 14:25:55 -04:00
Anthony Sottile
44cb80f74a
Merge pull request #2410 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-05-30 17:09:06 -04:00
pre-commit-ci[bot]
50589386af
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.950 → v0.960](https://github.com/pre-commit/mirrors-mypy/compare/v0.950...v0.960 )
2022-05-30 20:32:51 +00:00
Anthony Sottile
fb0ccf3546
correct one slight inaccuracy in language docs
2022-05-26 09:43:30 -04:00
Anthony Sottile
e93c1c6f27
Merge pull request #2393 from gaige/set-default-branch-for-tests-2391
...
force default branch name for tests
2022-05-14 22:21:07 -04:00
Gaige B. Paulsen
34e97023f4
force default branch name for tests
2022-05-14 18:40:37 -07:00
Anthony Sottile
9eccd9c35b
Merge pull request #2390 from gaige/main
...
Switch pty use to fix solaris
2022-05-14 09:38:52 -04:00
Gaige B. Paulsen
a84136d070
Switch pty use to fix solaris
...
Use the child instead of parent fd when manipulating pty for color.
2022-05-14 09:15:03 +00:00
Anthony Sottile
3cdc6c9d81
Merge pull request #2387 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-05-09 14:10:50 -07:00
pre-commit-ci[bot]
323fd0d188
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.32.0 → v2.32.1](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.32.1 )
2022-05-09 20:28:33 +00:00
Anthony Sottile
fd78116f5c
Merge pull request #2384 from narpfel/gem-no-user-install
...
Force gem installation into `GEM_HOME`
2022-05-07 14:28:31 -07:00
Paul Gey
a54391e96f
Force gem installation into GEM_HOME
...
When `--user-install` is set in the gemrc config file, `gem` ignores
`GEM_HOME`. `--no-user-install` prevents this behaviour.
2022-05-07 20:44:02 +02:00
Anthony Sottile
cc9d950601
v2.19.0
2022-05-05 06:54:43 -07:00
Anthony Sottile
96bf685380
fix non-unique id
2022-05-04 21:22:24 -04:00
Anthony Sottile
1b8665571e
Merge pull request #2375 from pre-commit/search-the-tracker
...
add search term required input to issue template
2022-05-04 18:21:39 -07:00
Anthony Sottile
af467017c2
add search term required input to issue template
2022-05-04 17:58:31 -07:00
Anthony Sottile
bec1728133
Merge pull request #2370 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-05-02 16:22:55 -04:00
pre-commit-ci[bot]
81129cefa5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v3.0.1 → v3.1.0](https://github.com/asottile/reorder_python_imports/compare/v3.0.1...v3.1.0 )
- [github.com/pre-commit/mirrors-mypy: v0.942 → v0.950](https://github.com/pre-commit/mirrors-mypy/compare/v0.942...v0.950 )
2022-05-02 20:18:58 +00:00
Anthony Sottile
7f189260e6
Merge pull request #2362 from pre-commit/deprecate-separate-entry-points
...
deprecate pre-commit-validate-{config,manifest}
2022-04-24 20:03:35 -04:00
Anthony Sottile
3929fe4a63
upgrade CI to ubuntu-latest / windows-latest
2022-04-24 19:10:09 -04:00
Anthony Sottile
777ffdd692
deprecate pre-commit-validate-{config,manifest}
2022-04-24 19:08:47 -04:00
Anthony Sottile
e1ce4c0bf3
Merge pull request #2349 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-04-18 16:24:09 -04:00
pre-commit-ci[bot]
18f1cdf470
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/add-trailing-comma: v2.2.2 → v2.2.3](https://github.com/asottile/add-trailing-comma/compare/v2.2.2...v2.2.3 )
2022-04-18 19:50:30 +00:00
Anthony Sottile
f7940112a2
Merge pull request #2342 from jalessio/upgrade-to-ruby-build-20220412
...
Update ruby-build to v20220412
2022-04-17 10:44:37 -04:00
Jamie Alessio
392bc33466
Update ruby-build to v20220412
2022-04-17 07:12:48 -07:00
Anthony Sottile
89a50ed64d
Merge pull request #2348 from pre-commit/healthy-info
...
add additional info to healthy-after-install check
2022-04-16 17:16:19 -04:00
Anthony Sottile
07554e9525
add additional info to healthy-after-install check
2022-04-16 16:46:28 -04:00
Anthony Sottile
2562c7f796
Merge pull request #2345 from wwade/main
...
pre-push: fix stdin line splitting when <local ref> has whitespace
2022-04-14 18:17:56 -04:00
Wade Carpenter
feb0d34213
pre-push: fix stdin line splitting when <local ref> has whitespace
...
From the `pre-push.sample` file:
> Information about the commits which are being pushed is supplied as
> lines to the standard input in the form:
>
> <local ref> <local sha1> <remote ref> <remote sha1>
When `<local ref>` is not simply a branch name, but a more general
ref (see git-rev-parse(1)), it could contain whitespace, and that
breaks the split() call that expected only 3 spaces in the line.
Changed to use `rsplit(maxsplit=3)` since only the <local ref> is
likely to have embedded whitespace.
Added a new test case for the same.
2022-04-14 14:27:46 -07:00
Anthony Sottile
f9473e756d
Merge pull request #2343 from pre-commit/golang-1-18
...
fix tests for golang 1.18
2022-04-13 18:25:13 -04:00
Anthony Sottile
b952c99898
fix tests for golang 1.18
2022-04-13 17:52:55 -04:00
Anthony Sottile
7189f340a9
Merge pull request #2339 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-04-11 20:01:17 -04:00
pre-commit-ci[bot]
e3ae0664bb
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.1.0 → v4.2.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0 )
- [github.com/asottile/pyupgrade: v2.31.1 → v2.32.0](https://github.com/asottile/pyupgrade/compare/v2.31.1...v2.32.0 )
2022-04-11 20:54:45 +00:00
Anthony Sottile
ecd7363676
Merge pull request #2332 from WallucePinkham/main
...
Handling multiple outputs from dotnet pack
2022-04-07 14:13:54 -04:00
Walluce Pinkham
9b3df4b90e
Handling multiple outputs from dotnet pack
2022-04-07 13:16:56 -04:00
Anthony Sottile
26a3e6f9ff
Merge pull request #2329 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-04-04 16:03:56 -04:00
pre-commit-ci[bot]
c8ce94b40e
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v1.20.0 → v1.20.1](https://github.com/asottile/setup-cfg-fmt/compare/v1.20.0...v1.20.1 )
- [github.com/asottile/add-trailing-comma: v2.2.1 → v2.2.2](https://github.com/asottile/add-trailing-comma/compare/v2.2.1...v2.2.2 )
2022-04-04 20:00:42 +00:00
Anthony Sottile
0276e25f71
v2.18.1
2022-04-02 21:32:54 -04:00
Anthony Sottile
f5af0a9ff4
Merge pull request #2324 from pre-commit/local-hooks-py27
...
fix python 2.7 `repo: local` hooks
2022-04-02 21:31:34 -04:00
Anthony Sottile
1722448c3b
fix python 2.7 repo: local hooks
2022-04-02 21:19:13 -04:00
Anthony Sottile
c5a39ae77e
v2.18.0
2022-04-02 19:36:45 -04:00
Anthony Sottile
3aa2ce89e8
Merge pull request #2323 from pre-commit/move-try-slightly
...
move patch discarding inside `try` for staged_files_only
2022-04-02 19:23:04 -04:00
Anthony Sottile
a138c85e64
move patch discarding inside try for staged_files_only
...
there's a rare race outlined in #2287
2022-04-02 16:24:57 -04:00
Anthony Sottile
7602abc3cf
Merge pull request #2322 from pre-commit/default-install-hook-types
...
implement default_install_hook_types
2022-04-02 15:36:59 -04:00
Anthony Sottile
e11163d010
Merge pull request #2301 from jeff-m-sullivan/rscript-path
...
use Rscript path relative to $R_HOME/bin/...
2022-04-02 15:30:52 -04:00
Anthony Sottile
d65016042b
Merge pull request #2252 from daschuer/worktree_fix
...
Use the correct .git path in case of worktrees.
2022-04-02 15:30:45 -04:00
Anthony Sottile
fd0177ae3a
implement default_install_hook_types
...
this implements a configurable fallback for the default value of `pre-commit install`
2022-04-02 15:11:31 -04:00
Daniel Schürmann
ba132f0200
Split get_git_dir() into get_git_dir() and get_git_common_dir()
...
This fixes the conflicted state check when using work trees. #1972
2022-04-02 15:07:22 -04:00
Jeff Sullivan
764a0db68e
use Rscript path relative to $R_HOME/bin/...
...
Co-authored-by: Lorenz Walthert <lorenz.walthert@icloud.com>
2022-04-02 14:22:29 -04:00
Anthony Sottile
934afb85a4
Merge pull request #2319 from jalessio/jamie/upgrade-rbenv-and-ruby-build
...
Update ruby-build to latest available (v20220324)
2022-03-31 14:35:15 -04:00
Jamie Alessio
9021fa15dd
Update ruby-build to latest available
2022-03-31 14:05:30 -04:00
Anthony Sottile
b97bb1809f
Merge pull request #2312 from mblayman/multiple-tags
...
Pick a tag if multiple tags exist on a SHA.
2022-03-31 11:13:45 -04:00
Matt Layman
e8b46c1b16
Pick a tag if multiple tags exist on a SHA.
...
Fixes #2311
2022-03-31 10:37:51 -04:00
Anthony Sottile
a522507020
Merge pull request #2315 from pre-commit/error-messages
...
include the configured value in the language_version / additional_dependencies error
2022-03-30 12:54:37 -04:00
Anthony Sottile
2188c0fd2c
include the configured value in the language_version / additional_dependencies error
2022-03-30 11:14:00 -04:00
Anthony Sottile
db44ad3022
Merge pull request #2304 from pre-commit/all-repos_autofix_reorder-pre-commit-config
...
reorder pre-commit config
2022-03-25 15:01:02 -04:00
Anthony Sottile
3b98040623
fix pre-commit issues
2022-03-25 14:31:33 -04:00
Anthony Sottile
97419b34de
reorder pre-commit config
...
Committed via https://github.com/asottile/all-repos
2022-03-25 14:12:02 -04:00
Anthony Sottile
98b9b70aa4
Merge pull request #2302 from pre-commit/master-to-main
...
update master to main
2022-03-24 13:56:33 -04:00
Anthony Sottile
525191f34b
update master to main
2022-03-24 13:52:25 -04:00
Anthony Sottile
354b900f15
Merge pull request #2297 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-03-21 19:03:59 -04:00
pre-commit-ci[bot]
28a5a28b39
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.940 → v0.941](https://github.com/pre-commit/mirrors-mypy/compare/v0.940...v0.941 )
2022-03-21 22:31:22 +00:00
Anthony Sottile
4421cb9424
Merge pull request #2293 from Holzhaus/coursier-executable-names
...
coursier: Add support for both `cs` and `coursier` executable names
2022-03-17 19:05:17 -04:00
Jan Holthuis
678ef6b9fd
coursier: Add support for both cs and coursier executable names
...
On some systems, the executable might be named `coursier` instead of
`cs`. For example, this is the case on Arch Linux when using the AUR
package, or when following the official instructions when installing the
JAR-based launcher:
https://get-coursier.io/docs/cli-installation#jar-based-launcher
2022-03-17 22:25:22 +01:00
Anthony Sottile
da55e97df8
Merge pull request #2288 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-03-15 11:49:36 -04:00
Anthony Sottile
a8225a250b
convince mypy that these are the same
2022-03-14 18:37:07 -04:00
pre-commit-ci[bot]
9516ed41aa
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v2.31.1 )
- [github.com/asottile/reorder_python_imports: v2.7.1 → v3.0.1](https://github.com/asottile/reorder_python_imports/compare/v2.7.1...v3.0.1 )
- [github.com/pre-commit/mirrors-mypy: v0.931 → v0.940](https://github.com/pre-commit/mirrors-mypy/compare/v0.931...v0.940 )
2022-03-14 22:18:01 +00:00
Anthony Sottile
f5116bc88d
Merge pull request #2285 from pre-commit/all-repos_autofix_gitignore-cleanup
...
remove unneeded gitignore lines
2022-03-13 20:20:38 -04:00
Anthony Sottile
a85df8027b
remove unneeded gitignore lines
...
- coverage-html: coverage>=6.2 writes a .gitignore file
- mypy_cache: mypy>=0.770 writes a .gitignore file
- pytest_cache: pytest>=3.8.1 writes a .gitignore file
- venv: virtualenv>=20.0.21 writes a .gitignore file
Committed via https://github.com/asottile/all-repos
2022-03-13 19:55:30 -04:00
Anthony Sottile
d525928665
Merge pull request #2272 from VincentBerthier/master
...
GIT_HTTP_PROXY_AUTHMETHOD kept in env variables
2022-03-05 18:26:51 -05:00
Anthony Sottile
2ed0eaa121
Merge pull request #2277 from lorenzwalthert/always-binary
...
Avoid build-time dependencies by prioritising binary over source dependencies for R
2022-03-05 18:26:34 -05:00
Lorenz Walthert
65755af7e3
inline options() to always install binaries
2022-03-05 21:04:01 +01:00
VincentBerthier
07f441584b
GIT_HTTP_PROXY_AUTHMETHOD kept in env variables
2022-03-04 20:18:27 +01:00
Anthony Sottile
e0e536b54e
Merge pull request #2266 from leetrout/patch-1
...
Fix typo in help docs for to-ref and from-ref
2022-03-02 18:09:02 -05:00
Lee Trout
e58bcb51fc
Fix typo in help docs for to-ref and from-ref
2022-03-02 17:33:11 -05:00
Anthony Sottile
7858ad066f
Merge pull request #2227 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-01-31 16:25:02 -05:00
pre-commit-ci[bot]
8e9202acb4
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/reorder_python_imports: v2.6.0 → v2.7.1](https://github.com/asottile/reorder_python_imports/compare/v2.6.0...v2.7.1 )
2022-01-31 21:02:21 +00:00
Anthony Sottile
f1d2e6c289
Merge pull request #2216 from pre-commit/all-repos_autofix_flake8-typing-imports
...
upgrade flake8-typing-imports
2022-01-23 21:56:48 -05:00
Anthony Sottile
1112c9f5ce
upgrade flake8-typing-imports
...
Committed via https://github.com/asottile/all-repos
2022-01-23 21:20:59 -05:00
Anthony Sottile
84372e0edc
Merge pull request #2215 from pre-commit/drop-py36
...
drop python 3.6 support
2022-01-18 19:29:54 -05: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
d3bdf1403d
v2.17.0
2022-01-18 12:59:39 -05:00
Anthony Sottile
b22b313e4b
Merge pull request #2158 from mblayman/lua
...
Add Lua language support
2022-01-17 16:20:03 -05:00
Anthony Sottile
54331dca6f
get lua version from luarocks itself
2022-01-17 15:46:36 -05:00
Matt Layman
3f8be7400d
Add naive and untested version of Lua language support.
2022-01-17 13:43:38 -05:00
Anthony Sottile
7a305e5d9a
Merge pull request #2210 from pre-commit/git-version
...
add git version to error output
2022-01-16 12:42:43 -05:00
Anthony Sottile
c05f58b776
add git version to error output
2022-01-16 07:20:12 -08:00
Anthony Sottile
12b482345b
Merge pull request #2207 from xhochy/mamba
...
Add mamba support to `language: conda`
2022-01-15 17:57:13 -05:00
Uwe L. Korn
83aa65c429
Add mamba support to language: conda
2022-01-15 16:28:44 -05:00
Anthony Sottile
657e76ba77
Merge pull request #2205 from jalessio/jamie/upgrade-rbenv
...
Update rbenv / ruby-build versions
2022-01-15 16:19:59 -05:00
Jamie Alessio
428dc6e46e
Update rbenv / ruby-build versions
2022-01-15 16:19:28 -05:00
Anthony Sottile
b944395d66
Merge pull request #2198 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-01-10 16:17:42 -05:00
Anthony Sottile
bba6cf4296
Revert "work around python/mypy#11852"
...
This reverts commit 83675fe768 .
2022-01-10 15:35:33 -05:00
pre-commit-ci[bot]
a33773182e
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.930 → v0.931](https://github.com/pre-commit/mirrors-mypy/compare/v0.930...v0.931 )
2022-01-10 20:21:20 +00:00
Anthony Sottile
445a2ef498
Merge pull request #2187 from pre-commit/always-sh-on-windows
...
always use #!/bin/sh on windows
2022-01-06 09:05:46 -05:00
Anthony Sottile
e3dc3f7934
always use #!/bin/sh on windows
2022-01-05 13:22:49 -05:00
Anthony Sottile
cccbc9d280
Merge pull request #2183 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-01-03 15:44:21 -05:00
pre-commit-ci[bot]
8be0a10e91
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-autopep8: v1.5.7 → v1.6.0](https://github.com/pre-commit/mirrors-autopep8/compare/v1.5.7...v1.6.0 )
- [github.com/asottile/pyupgrade: v2.29.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.29.1...v2.31.0 )
2022-01-03 20:02:48 +00:00
Anthony Sottile
e97140e4d0
Merge pull request #2181 from pre-commit/forbid-meta-override-entry
...
forbid overriding `entry` for meta hooks
2021-12-31 21:00:44 -05:00
Anthony Sottile
d3b4f737b9
forbid overriding entry for meta hooks
2021-12-31 17:31:12 -08:00
Anthony Sottile
16f68254a8
Merge pull request #2177 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-12-27 19:08:23 -05:00
Anthony Sottile
83675fe768
work around python/mypy#11852
2021-12-27 18:32:56 -05:00
pre-commit-ci[bot]
d7ac975454
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0 )
- [github.com/pre-commit/mirrors-mypy: v0.920 → v0.930](https://github.com/pre-commit/mirrors-mypy/compare/v0.920...v0.930 )
2021-12-27 20:06:12 +00:00
Anthony Sottile
0248dd4a0b
Merge pull request #2170 from lorenzwalthert/fix-renv-in-wd
...
Make `language: r` work when there is already a renv in the working directory and `RENV_PROJECT` is set
2021-12-24 16:52:06 -05:00
Lorenz Walthert
1617692f12
no docs
2021-12-24 14:52:46 +01:00
Lorenz Walthert
b7331b653a
unset renv project
2021-12-24 14:36:43 +01:00
Lorenz Walthert
ba496b8369
better r path detection
2021-12-24 14:01:18 +01:00
Anthony Sottile
44687a3cda
Merge pull request #2167 from pre-commit/dead
...
run dead, remove dead code
2021-12-22 16:34:39 -05:00
Anthony Sottile
42b0a263a6
run dead, remove dead code
...
via https://github.com/asottile/dead
2021-12-22 11:30:55 -08:00
Anthony Sottile
de177e8850
Merge pull request #2164 from pre-commit/py2-cleanup
...
minor py2 cleanup for sys.stderr.buffer
2021-12-20 22:03:16 -05:00
Anthony Sottile
3512e441f4
replace echo image with focal
2021-12-20 17:38:59 -05:00
Anthony Sottile
f637ac8603
minor py2 cleanup for sys.stderr.buffer
2021-12-20 17:01:51 -05:00
Anthony Sottile
bd787a9fcd
Merge pull request #2163 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-12-20 15:45:55 -05:00
pre-commit-ci[bot]
a781bfb063
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.910-1 → v0.920](https://github.com/pre-commit/mirrors-mypy/compare/v0.910-1...v0.920 )
2021-12-20 19:42:45 +00:00
Anthony Sottile
c0d3b8e7d0
Merge pull request #2161 from schmir/use-go-install
...
Use 'go install' instead of 'go get'
2021-12-15 12:15:08 -05:00
Ralf Schmitt
379db4cb88
Use 'go install' instead of 'go get'
...
`go install` is the recommended way to install modules starting from go 1.16.
In go 1.18 `go get` cannot be used anymore to install packages [1]. go 1.18 is
not released yet.
[1] https://tip.golang.org/doc/go1.18#go-command
2021-12-15 10:05:59 +01:00
Anthony Sottile
097f2c8917
Merge pull request #2154 from kuviokelluja/master
...
fix: Add missing warning for regular expression with [\\/]
2021-12-05 14:44:48 -05:00
Tony Rintala
b5088ceca6
fix: regex lists to regex tuples
2021-12-05 01:35:43 +02:00
Tony Rintala
d4ffa5befb
fix: Add missing warning for regular expression with [\\/]
...
test: Test case parameters for said regular expression
refactor: For-loop for regex warnings instead of multiple if statements
resolves #2151
2021-12-04 22:51:04 +02:00
Anthony Sottile
a737d5fe2f
add setuptools to the zipapp. resolves #2122
2021-11-30 18:19:36 -05:00
Anthony Sottile
d91a4c47f3
v2.16.0
2021-11-30 18:16:47 -05:00
Anthony Sottile
3efc436d71
Merge pull request #2145 from pre-commit/all-repos_autofix_covdefaults-2-1
...
improve coverage pragmas with covdefaults 2.1
2021-11-29 21:09:33 -05:00
Anthony Sottile
270b539e8f
improve coverage pragmas with covdefaults 2.1
...
Committed via https://github.com/asottile/all-repos
2021-11-29 20:45:40 -05:00
Anthony Sottile
f6547ac54e
Merge pull request #2138 from pre-commit/all-repos_autofix_gh-funding-default
...
Use org-default .github/FUNDING.yml
2021-11-25 11:12:04 -05:00
Anthony Sottile
c45b84bd39
Use org-default .github/FUNDING.yml
...
Committed via https://github.com/asottile/all-repos
2021-11-23 11:24:26 -05:00
Anthony Sottile
36e9514e03
Merge pull request #2136 from emzeat/fix/git_config_env
...
support gitconfig from env
2021-11-22 20:17:34 -05:00
Anthony Sottile
fbf964864d
Merge pull request #2134 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-11-22 20:17:26 -05:00
Marius Zwicker
4eb91cdd8e
support gitconfig from env
...
Add exceptions to the git env so externally configured gitconfig
values set via GIT_CONFIG_KEY_<n>, GIT_CONFIG_VALUE_<n> and
GIT_CONFIG_COUNT get passed through.
2021-11-22 19:40:30 -05:00
pre-commit-ci[bot]
a064f248d7
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1 )
- [github.com/asottile/add-trailing-comma: v2.2.0 → v2.2.1](https://github.com/asottile/add-trailing-comma/compare/v2.2.0...v2.2.1 )
- [github.com/asottile/setup-cfg-fmt: v1.19.0 → v1.20.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.19.0...v1.20.0 )
2021-11-22 19:36:24 -05:00
Anthony Sottile
b300116adc
Merge pull request #2137 from pre-commit/upgrade-perl-tidy
...
bump perltidy version
2021-11-22 19:35:58 -05:00
Anthony Sottile
b2a35414aa
bump perltidy version
2021-11-22 18:43:47 -05:00
Anthony Sottile
cb40e9682e
Merge pull request #2115 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-11-01 16:05:53 -04:00
pre-commit-ci[bot]
141e18319a
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/setup-cfg-fmt: v1.18.0 → v1.19.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.18.0...v1.19.0 )
2021-11-01 19:35:28 +00:00
Anthony Sottile
58ae1140c3
Merge pull request #2114 from pre-commit/fix-indent
...
fix indent in hook-tmpl
2021-10-30 13:40:44 -04:00
Anthony Sottile
087541cb2d
fix indent in hook-tmpl
2021-10-30 12:11:52 -04:00
Anthony Sottile
d300bcfb80
Merge pull request #2111 from pre-commit/silence
...
silence the output of `command -v`
2021-10-29 11:14:51 -04:00
Anthony Sottile
0b87867729
silence the output of command -v
2021-10-28 21:21:59 -07:00
Anthony Sottile
9b18686168
Merge pull request #2106 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-10-25 12:30:19 -07:00
pre-commit-ci[bot]
2b30fbcfd5
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/add-trailing-comma: v2.1.0 → v2.2.0](https://github.com/asottile/add-trailing-comma/compare/v2.1.0...v2.2.0 )
2021-10-25 18:59:17 +00:00
Anthony Sottile
c6a1bc144a
Merge pull request #2104 from pre-commit/all-repos_autofix_exit-main-2
...
exit(main()) -> raise SystemExit(main()) pt2
2021-10-24 08:11:48 -07:00
Anthony Sottile
28cafc2273
exit(main()) -> raise SystemExit(main()) pt2
...
Committed via https://github.com/asottile/all-repos
2021-10-24 07:19:57 -07:00
Anthony Sottile
26a05b547e
Merge pull request #2103 from pre-commit/all-repos_autofix_systemexit-main
...
replace exit(main()) with raise SystemExit(main())
2021-10-23 11:29:35 -07:00
Anthony Sottile
c8cf74dc71
replace exit(main()) with raise SystemExit(main())
...
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:48 -04:00
Anthony Sottile
663a766a0c
Merge pull request #2097 from colens3/master
...
Support fail_fast on check level
2021-10-22 16:19:24 -07:00
Stojan Nedic
63ae399db0
Add fail_fast support per-hook
2021-10-22 19:16:30 -04:00
Anthony Sottile
ae53a8eb65
Merge pull request #2098 from pre-commit/asottile-patch-1
...
ban broken importlib-resources versions
2021-10-19 19:14:13 -07:00
Anthony Sottile
d0c9e589ca
ban broken importlib-resources versions
2021-10-19 19:02:36 -07:00
Anthony Sottile
2ac26e221c
Merge pull request #2086 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-10-11 17:55:17 -07:00
Anthony Sottile
8c844c794d
work around conda bug installing python3.1/site-packages
...
https://github.com/conda/conda/issues/10969
2021-10-11 20:21:34 -04:00
pre-commit-ci[bot]
69a4dbda68
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-10-11 18:53:57 +00:00
pre-commit-ci[bot]
247d892e69
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1 )
- [github.com/asottile/setup-cfg-fmt: v1.17.0 → v1.18.0](https://github.com/asottile/setup-cfg-fmt/compare/v1.17.0...v1.18.0 )
- [github.com/pre-commit/mirrors-mypy: v0.910 → v0.910-1](https://github.com/pre-commit/mirrors-mypy/compare/v0.910...v0.910-1 )
2021-10-11 18:53:36 +00:00
Anthony Sottile
6872289f1a
Merge pull request #2078 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-10-04 12:58:20 -07:00
pre-commit-ci[bot]
0acf2e99c4
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.25.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.25.0...v2.29.0 )
2021-10-04 18:54:25 +00:00
Anthony Sottile
d021bbfabd
Merge pull request #2071 from pre-commit/submodule-recurse-bug
...
make sure to not discard changes even if submodule.recurse=1
2021-10-01 16:47:50 -07:00
Anthony Sottile
e9ed248a15
make sure to not discard changes even if submodule.recurse=1
2021-10-01 18:45:36 -04:00
Anthony Sottile
e0e3fabfdb
Merge pull request #2066 from pre-commit/unxfail-node-windows
...
un-xfail node on windows
2021-09-27 17:44:37 -07:00
Anthony Sottile
2fc00f73b6
un-xfail node on windows
...
these have been reasonably stable for a while
2021-09-27 20:00:18 -04:00
Anthony Sottile
b3c0d84dd3
Merge pull request #2065 from pre-commit/hook-template-bash
...
port hook template to bash
2021-09-27 16:59:10 -07:00
Anthony Sottile
e622f793c3
port hook template to bash
...
this avoids some version-specific code in python
this also makes the bootstrap script slightly more portable
2021-09-27 19:34:04 -04:00
Anthony Sottile
ef7b126ee3
Merge pull request #2053 from radek-sprta/master
...
Add warning for regular expression with [\/] (#2043 )
2021-09-22 16:56:21 -07:00
Radek SPRTA
cef9c4af03
Add warning for regular expression with [\/] ( #2043 )
2021-09-22 19:07:38 -04:00
Anthony Sottile
530dbe69ce
Merge pull request #2047 from pre-commit/windows-as-usual
...
fix pre-commit autoupdate for core.useBuiltinFSMonitor=true on windows
2021-09-14 14:15:34 -07:00
Anthony Sottile
ab94dd69f8
fix pre-commit autoupdate for core.useBuiltinFSMonitor=true on windows
2021-09-13 20:01:25 -04:00
Anthony Sottile
2ef29b7f95
Merge pull request #2039 from pre-commit/issue-form
...
add a bug report issue form
2021-09-06 15:52:04 -04:00
Anthony Sottile
09ffe421a9
add a bug report issue form
2021-09-06 15:01:42 -04:00
Anthony Sottile
36b8ad63d2
v2.15.0
2021-09-02 20:33:19 -04:00
Anthony Sottile
c64c36b120
Merge pull request #2036 from uSpike/add-post-rewrite-hook
...
Add: post-rewrite hook support
2021-09-02 14:08:23 -04:00
Jordan Speicher
4cd8b364dd
Add: post-rewrite hook support
2021-09-01 14:50:59 -05:00
Anthony Sottile
3bab1514c3
Merge pull request #2030 from pre-commit/duplicate-messages-autoupdate
...
remove duplicate warnings while running autoupdate
2021-08-30 21:49:04 -04:00
Anthony Sottile
25a1988859
Merge pull request #2029 from pre-commit/broken-symlink-check-useless-excludes
...
fix check-useless-excludes for exclude of broken symlink
2021-08-30 21:48:56 -04:00
Anthony Sottile
726f2ad0a3
remove duplicate warnings while running autoupdate
2021-08-30 20:56:24 -04:00
Anthony Sottile
35d3ed40cd
fix check-useless-excludes for exclude of broken symlink
2021-08-30 20:56:14 -04:00
Anthony Sottile
a96bb23caf
Merge pull request #2031 from pre-commit/wtf-is-ort
...
update tests for latest git
2021-08-30 20:55:57 -04:00
Anthony Sottile
54a481c04b
update tests for latest git
2021-08-30 20:48:41 -04:00
Anthony Sottile
66c51a3d56
Merge pull request #2027 from pre-commit/dart
...
add support for dart as a hook language
2021-08-30 19:30:51 -04:00
Anthony Sottile
2d03991195
Merge pull request #2028 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-30 15:10:08 -04:00
pre-commit-ci[bot]
46c18d9370
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.24.0 → v2.25.0](https://github.com/asottile/pyupgrade/compare/v2.24.0...v2.25.0 )
2021-08-30 18:35:12 +00:00
Anthony Sottile
f8e21cb78b
add support for dart as a hook language
2021-08-29 08:57:56 -07:00
Anthony Sottile
0f08ba77c8
v2.14.1
2021-08-28 14:15:40 -04:00
Anthony Sottile
12f62d2191
Merge pull request #2026 from pre-commit/incorrect-regular-expressions
...
make `repo: meta` only apply to top level configuration
2021-08-28 14:07:53 -04:00
Anthony Sottile
f963bf6f9a
make repo: meta only apply to top level configuration
2021-08-28 13:39:55 -04:00
Anthony Sottile
40e21bb8ba
Merge pull request #2020 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-23 14:44:45 -04:00
pre-commit-ci[bot]
b829bc2dba
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.23.3 → v2.24.0](https://github.com/asottile/pyupgrade/compare/v2.23.3...v2.24.0 )
2021-08-23 18:12:36 +00:00
Anthony Sottile
509e4e20e8
Merge pull request #2005 from pre-commit/disparate-histories
...
fall back to full diff on disparate histories
2021-08-10 08:55:03 -04:00
Anthony Sottile
0fe959df60
fall back to full diff on disparate histories
2021-08-09 20:13:15 -04:00
Anthony Sottile
abc1c5d9ba
Merge pull request #2004 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-09 11:52:02 -07:00
pre-commit-ci[bot]
d6f5504311
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.23.1 → v2.23.3](https://github.com/asottile/pyupgrade/compare/v2.23.1...v2.23.3 )
2021-08-09 18:05:46 +00:00
Anthony Sottile
ab15d7d22d
v2.14.0
2021-08-06 11:32:11 -07:00
Anthony Sottile
6cfdabb69a
Merge pull request #1997 from pre-commit/true-dind
...
ignore self-container when in docker-in-docker
2021-08-03 16:41:21 -04:00
Anthony Sottile
5d1cac64c1
ignore self-container when in docker-in-docker
2021-08-03 13:08:07 -07:00
Anthony Sottile
a4444f1996
Merge pull request #1996 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-08-02 15:30:08 -04:00
pre-commit-ci[bot]
5bd2077872
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.23.0 → v2.23.1](https://github.com/asottile/pyupgrade/compare/v2.23.0...v2.23.1 )
2021-08-02 18:01:06 +00:00
Anthony Sottile
a02859ad6b
Merge pull request #1989 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-26 14:34:48 -04:00
pre-commit-ci[bot]
6cd4e2af48
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.21.2 → v2.23.0](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.23.0 )
- [github.com/asottile/reorder_python_imports: v2.5.0 → v2.6.0](https://github.com/asottile/reorder_python_imports/compare/v2.5.0...v2.6.0 )
2021-07-26 17:51:54 +00:00
Anthony Sottile
621146bd80
Merge pull request #1984 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-19 18:24:20 -04:00
pre-commit-ci[bot]
0065a71e3d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.21.0 → v2.21.2](https://github.com/asottile/pyupgrade/compare/v2.21.0...v2.21.2 )
2021-07-19 21:58:13 +00:00
Anthony Sottile
fe436f1eb0
Merge pull request #1974 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-12 20:18:26 -04:00
pre-commit-ci[bot]
81c0413c38
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.20.0 → v2.21.0](https://github.com/asottile/pyupgrade/compare/v2.20.0...v2.21.0 )
2021-07-12 23:20:49 +00:00
Anthony Sottile
835f9c65e9
Merge pull request #1968 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-07-05 18:30:48 -04:00
pre-commit-ci[bot]
d4c14fb6fd
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.19.4 → v2.20.0](https://github.com/asottile/pyupgrade/compare/v2.19.4...v2.20.0 )
2021-07-05 22:01:40 +00:00
Anthony Sottile
edcbf8fb4b
Merge pull request #1919 from adarnimrod/fix-container-id
...
A more reliable way to get the container id.
2021-07-03 14:44:01 -04:00
Anthony Sottile
8067f013d2
fix casing in .pre-commit-hooks.yaml
2021-07-03 11:14:05 -07:00
Adar Nimrod
3e1020945e
A more reliable way to get the container id.
...
The hostname is not always the container id. Get the container id from
/proc/1/cgroup. Fixes #1918 .
2021-07-03 10:43:11 -07:00
Anthony Sottile
68294256a1
Merge pull request #1956 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-06-28 18:14:39 -07:00
pre-commit-ci[bot]
af429b951d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-mypy: v0.902 → v0.910](https://github.com/pre-commit/mirrors-mypy/compare/v0.902...v0.910 )
2021-06-28 17:37:10 +00:00
Anthony Sottile
2d4de2ef35
Merge pull request #1949 from pre-commit/all-repos_autofix_mypy-settings
...
stricter mypy settings
2021-06-21 19:52:48 -07:00
Anthony Sottile
1dca1f3c19
stricter mypy settings
...
Committed via https://github.com/asottile/all-repos
2021-06-21 19:15:37 -07:00
Anthony Sottile
ba5e6eb42d
Merge pull request #1947 from FlorentClarret/pre_push_local_branch
...
Expose local branch ref as an environment variable
2021-06-19 11:46:17 -07:00
Florent Clarret
584fd585ec
Expose local branch ref as an environment variable
2021-06-19 18:18:14 +02:00
Anthony Sottile
8037b45cb1
Merge pull request #1943 from pre-commit/binary_legacy
...
read legacy hooks in an encoding-agnostic way
2021-06-15 10:23:11 -07:00
Anthony Sottile
0ed646ed09
read legacy hooks in an encoding-agnostic way
2021-06-15 08:32:44 -07:00
Anthony Sottile
b77194644e
Merge pull request #1941 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-06-14 12:26:01 -07:00
Anthony Sottile
19da6479a8
Add mypy dependency on types-all
2021-06-14 11:58:41 -07:00
pre-commit-ci[bot]
65dc06c989
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.19.1 → v2.19.4](https://github.com/asottile/pyupgrade/compare/v2.19.1...v2.19.4 )
- [github.com/pre-commit/mirrors-mypy: v0.812 → v0.902](https://github.com/pre-commit/mirrors-mypy/compare/v0.812...v0.902 )
2021-06-14 17:34:33 +00:00
Anthony Sottile
4e3ec8ef24
Merge pull request #1933 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-06-07 19:16:04 -07:00
pre-commit-ci[bot]
c4e4f2d9fa
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.19.0 → v2.19.1](https://github.com/asottile/pyupgrade/compare/v2.19.0...v2.19.1 )
2021-06-08 01:47:05 +00:00
Anthony Sottile
f0fc9f8846
Merge pull request #1928 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-05-31 10:56:52 -07:00
pre-commit-ci[bot]
b517f9cc7f
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.18.2 → v2.19.0](https://github.com/asottile/pyupgrade/compare/v2.18.2...v2.19.0 )
2021-05-31 17:26:07 +00:00
Anthony Sottile
488b1999f3
Merge pull request #1922 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-05-24 11:19:27 -07:00
pre-commit-ci[bot]
d3c5cd6ee2
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-05-24 17:20:17 +00:00
pre-commit-ci[bot]
1d2cde763c
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.16.0 → v2.18.2](https://github.com/asottile/pyupgrade/compare/v2.16.0...v2.18.2 )
2021-05-24 17:19:56 +00:00
Anthony Sottile
229a4e03e3
v2.13.0
2021-05-21 14:04:43 -07:00
Anthony Sottile
a1f2d69552
Merge pull request #1913 from jalessio/jamie/upgrade-ruby
...
Update rbenv / ruby-build
2021-05-18 08:11:20 -07:00
Jamie Alessio
14afbc7ad6
Update rbenv / ruby-build
2021-05-18 08:08:07 -07:00
Anthony Sottile
9f2f405c3f
Merge pull request #1915 from pre-commit/reproducible-tar
...
make tarfile creation reproducible
2021-05-18 07:59:54 -07:00
Anthony Sottile
c2108d6d43
make tarfile creation reproducible
2021-05-17 20:15:00 -07:00
Anthony Sottile
7266936138
Merge pull request #1914 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-05-17 11:54:41 -07:00
pre-commit-ci[bot]
7f65d2745d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v3.4.0 → v4.0.1](https://github.com/pre-commit/pre-commit-hooks/compare/v3.4.0...v4.0.1 )
- [github.com/asottile/pyupgrade: v2.15.0 → v2.16.0](https://github.com/asottile/pyupgrade/compare/v2.15.0...v2.16.0 )
2021-05-17 17:22:52 +00:00
Anthony Sottile
147b047487
Merge pull request #1911 from pre-commit/all-repos_autofix_more-inclusive-language
...
Use more inclusive language
2021-05-14 19:53:14 -07:00
Anthony Sottile
3922263f8c
Use more inclusive language
...
Committed via https://github.com/asottile/all-repos
2021-05-14 19:11:05 -07:00
Anthony Sottile
2c28197c2a
Merge pull request #1906 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-05-10 14:09:01 -07:00
pre-commit-ci[bot]
b9c2c477cc
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 3.9.1 → 3.9.2](https://github.com/PyCQA/flake8/compare/3.9.1...3.9.2 )
- [github.com/asottile/pyupgrade: v2.14.0 → v2.15.0](https://github.com/asottile/pyupgrade/compare/v2.14.0...v2.15.0 )
2021-05-10 20:19:33 +00:00
Anthony Sottile
45c721a2ca
Merge pull request #1878 from lorenzwalthert/local-r-hooks
...
R local hooks should not prefix hook path
2021-05-05 19:04:14 -07:00
Lorenz
788aec156f
local r hooks should not get prefix for path
2021-05-05 18:15:56 -07:00
Anthony Sottile
c082292bb8
Merge pull request #1841 from lorenzwalthert/renv-activate2
...
Avoid warnings with R hooks when renv version don't match
2021-05-04 19:27:44 -07:00
Anthony Sottile
0107df0a2b
Merge pull request #1898 from lorenzwalthert/idenfity-package-over-package-field
...
Use more common package definition for R
2021-05-04 18:59:23 -07:00
Lorenz
b8fff8c508
Avoid warnings with R hooks when renv version don't match
2021-05-04 18:56:43 -07:00
Anthony Sottile
c753eeb6ec
Merge pull request #1899 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-05-03 10:54:56 -07:00
pre-commit-ci[bot]
6485dd45a3
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/mirrors-autopep8: v1.5.6 → v1.5.7](https://github.com/pre-commit/mirrors-autopep8/compare/v1.5.6...v1.5.7 )
- [github.com/asottile/pyupgrade: v2.13.0 → v2.14.0](https://github.com/asottile/pyupgrade/compare/v2.13.0...v2.14.0 )
2021-05-03 17:18:16 +00:00
Lorenz
a19a59652f
Use more common package definition
2021-05-03 18:08:22 +02:00
Anthony Sottile
7f13fa5d5f
Merge pull request #1888 from okainov/docker-fix-2
...
fix: fix path mounting when running in Docker
2021-04-28 19:51:27 -07:00
Oleg Kainov
6d5d386c9f
fix: fix path mounting when running in Docker
...
Currently pre-commit mounts the current directory to /src and uses
current directory name as mount base.
However this does not work when pre-commit is run inside the container
on some mounted path already, because mount points are relative to the
host, not to the container.
Fixes #1387
2021-04-28 19:21:34 -07:00
Anthony Sottile
52e1dd6099
Merge pull request #1890 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-04-26 11:05:21 -07:00
pre-commit-ci[bot]
60bf370a7d
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.12.0 → v2.13.0](https://github.com/asottile/pyupgrade/compare/v2.12.0...v2.13.0 )
- [github.com/asottile/reorder_python_imports: v2.4.0 → v2.5.0](https://github.com/asottile/reorder_python_imports/compare/v2.4.0...v2.5.0 )
2021-04-26 17:18:40 +00:00
Anthony Sottile
24d9dc7469
Merge pull request #1875 from pre-commit/skip-installation-for-skip
...
skip installation for SKIP'd hooks
2021-04-19 19:40:51 -07:00
Anthony Sottile
9b4e7691f4
Merge pull request #1883 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-04-19 11:42:55 -07:00
pre-commit-ci[bot]
de2b7b6dcc
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/PyCQA/flake8: 3.9.0 → 3.9.1](https://github.com/PyCQA/flake8/compare/3.9.0...3.9.1 )
2021-04-19 17:08:45 +00:00
Anthony Sottile
8fc66027f7
v2.12.1
2021-04-16 14:14:17 -07:00
Anthony Sottile
52ada7c614
Merge pull request #1881 from adamchainz/issue_1880_patch_naming
...
Include PID in patch filename
2021-04-16 14:12:38 -07:00
Adam Johnson
4f2069ee9a
Include PID in patch filename
...
Fixes #1880 .
2021-04-16 21:35:49 +01:00
Anthony Sottile
559d8a78d1
Merge pull request #1877 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-04-12 10:40:04 -07:00
pre-commit-ci[bot]
30649e7fee
[pre-commit.ci] pre-commit autoupdate
2021-04-12 17:09:59 +00:00
Anthony Sottile
12a7075fda
skip installation for SKIP'd hooks
2021-04-10 00:37:59 -07:00
Anthony Sottile
8dede082d5
Merge pull request #1873 from pre-commit/all-repos_autofix_azure-pipelines-autoupdate
...
Update azure-pipelines template repositories
2021-04-08 20:08:57 -07:00
Anthony Sottile
5deeb82e0e
Update azure-pipelines template repositories
...
Committed via https://github.com/asottile/all-repos
2021-04-08 19:22:17 -07:00
Anthony Sottile
a1b462c94a
v2.12.0
2021-04-06 08:18:14 -07:00
Anthony Sottile
baadc2dc93
Merge pull request #1868 from pre-commit/fix_archive_permissions
...
fix archive permissions for ruby tar.gz roots
2021-04-06 08:14:11 -07:00
Anthony Sottile
d5eda977ce
fix archive permissions for ruby tar.gz roots
2021-04-06 07:55:32 -07:00
Anthony Sottile
bd1658baae
Merge pull request #1866 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-04-05 11:30:44 -07:00
pre-commit-ci[bot]
5827a93c2f
[pre-commit.ci] pre-commit autoupdate
2021-04-05 17:08:42 +00:00
Anthony Sottile
008717fcc9
Merge pull request #1864 from pre-commit/batch_additional_headroom
...
give xargs batch file execution additional headroom
2021-04-04 10:32:11 -07:00
Anthony Sottile
fb590d41ff
give xargs batch file execution additional headroom
2021-04-04 10:00:55 -07:00
Anthony Sottile
e431b2b898
Merge pull request #1854 from pre-commit/upgrade_ruby_build
...
upgrade ruby-build
2021-03-23 07:39:23 -07:00
Anthony Sottile
3bada745ea
upgrade ruby-build
2021-03-22 19:41:30 -07:00
Anthony Sottile
060b719d44
Merge pull request #1851 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-03-22 12:10:59 -07:00
pre-commit-ci[bot]
e8cb09f70f
[pre-commit.ci] pre-commit autoupdate
2021-03-22 17:03:06 +00:00
Anthony Sottile
d6ec6cf719
Merge pull request #1839 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-03-15 12:15:56 -07:00
pre-commit-ci[bot]
4a440f67c8
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-03-15 17:00:34 +00:00
pre-commit-ci[bot]
74bbc72d28
[pre-commit.ci] pre-commit autoupdate
2021-03-15 17:00:05 +00:00
Anthony Sottile
8aec369df7
v2.11.1
2021-03-09 16:57:10 -08:00
Anthony Sottile
478efe55c6
Merge pull request #1831 from lorenzwalthert/renv-fix
...
Fix r hooks when hook repo is a package
2021-03-09 16:55:52 -08:00
Lorenz
cf57e35e37
install package from prefix_dir, not env_dir (which yields empty pkg)
2021-03-09 16:44:36 -08:00
Anthony Sottile
54c49abbcb
v2.11.0
2021-03-07 14:58:42 -08:00
Anthony Sottile
b3750cac62
Merge pull request #1828 from pre-commit/worktree_in_git
...
add test for worktree inside of .git dir
2021-03-07 14:52:44 -08:00
Anthony Sottile
14d3af25eb
add test for worktree inside of .git dir
2021-03-07 14:43:32 -08:00
Anthony Sottile
19bffaa2fd
Merge pull request #1799 from lorenzwalthert/renv
...
Support for R / renv as a language
2021-03-07 14:28:33 -08:00
Lorenz
f1502119a2
add support for R via renv
2021-03-07 13:58:14 -08:00
Anthony Sottile
b193d9e67b
Merge pull request #1800 from psacawa/post-merge-pr
...
Add support for post-merge hooks
2021-02-27 09:19:40 -08:00
Anthony Sottile
a38f8d059e
Merge pull request #1818 from rafikdraoui/go1.16-support
...
Add support for Go 1.16
2021-02-26 18:38:45 -08:00
Rafik Draoui
fe1f56c08f
Add support for Go 1.16
...
Go 1.16 changes the way modules are handled. It now expects Go projects
to have non-empty `go.mod` files.
This change is compatible with Go 1.15.
Fixes #1815
2021-02-25 19:25:39 -04:00
Anthony Sottile
f3de91c2bb
Merge pull request #1814 from pre-commit/subst
...
Fix pre-commit install on subst drives
2021-02-23 19:20:33 -08:00
Paweł Sacawa
6b73138c73
Add: post-merge hook support
2021-02-23 19:00:02 -08:00
Anthony Sottile
f2dffc5237
Merge pull request #1809 from JamMarHer/patch-1
...
Instruct users how to prevent a warning.
2021-02-23 18:54:23 -08:00
Anthony Sottile
616249e680
Merge pull request #1813 from pre-commit/fix_without_us_test
...
fix _path_without_us under test when path segment ends in slash
2021-02-23 18:54:13 -08:00
Anthony Sottile
f9fbe18abf
Fix pre-commit install on subst drives
2021-02-23 18:52:24 -08:00
Anthony Sottile
87dccbb8dc
fix _path_without_us under test when path segment ends in slash
2021-02-23 18:22:12 -08:00
Jam M. Hernandez Quiceno
3d31858ee3
Instruct users how to prevent a mutable rev in repo warning.
2021-02-23 17:59:50 -08:00
Anthony Sottile
d7b189ce56
Merge pull request #1811 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-02-22 09:35:09 -08:00
pre-commit-ci[bot]
c024147ede
[pre-commit.ci] pre-commit autoupdate
2021-02-22 17:03:19 +00:00
Anthony Sottile
d827e9aa72
Merge pull request #1792 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-02-08 09:20:08 -08:00
pre-commit-ci[bot]
0cd8cbc83d
[pre-commit.ci] pre-commit autoupdate
2021-02-08 16:48:57 +00:00
Anthony Sottile
0047fa35dd
v2.10.1
2021-02-06 13:21:12 -08:00
Anthony Sottile
2dac92cc8c
Merge pull request #1789 from paulhfischer/recursive_golang
...
added recursive repository support for golang
2021-02-06 13:18:37 -08:00
Anthony Sottile
833bbf7186
add test for recursive submodules for golang
2021-02-06 12:52:42 -08:00
Paul Fischer
34e0ff3497
added recursive repository support for golang
2021-02-06 12:52:41 -08:00
Anthony Sottile
e6caddba19
Merge pull request #1781 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-02-01 12:46:22 -08:00
pre-commit-ci[bot]
5e7c6eb31e
[pre-commit.ci] pre-commit autoupdate
2021-02-01 16:48:53 +00:00
Anthony Sottile
c67ba85311
v2.10.0
2021-01-27 12:47:08 -08:00
Anthony Sottile
588b6ed3fc
Merge pull request #1778 from pre-commit/bare_worktree
...
fix execution in worktrees in subdirectories of bare repositories
2021-01-27 12:30:59 -08:00
Anthony Sottile
f75fc6b2a8
fix execution in worktrees in subdirectories of bare repositories
2021-01-27 10:08:48 -08:00
Anthony Sottile
7727f8777a
Merge pull request #1773 from pre-commit/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-01-25 13:24:57 -08:00
Anthony Sottile
d258650ad4
use comparison with sys.platform so mypy understands it
2021-01-25 12:47:07 -08:00
pre-commit-ci[bot]
74183d91cb
[pre-commit.ci] pre-commit autoupdate
2021-01-25 16:40:14 +00:00
Anthony Sottile
dbd69af90d
Merge pull request #1772 from pre-commit/caplog_moar
...
replace fake_log_handler with caplog
2021-01-22 14:34:42 -08:00
Anthony Sottile
da369be096
Merge pull request #1771 from pre-commit/no_install_language_options
...
produce a more useful error message when non-installable things use language_version or additional_dependencies
2021-01-22 14:34:35 -08:00
Anthony Sottile
c7cbb1e6ad
replace fake_log_handler with caplog
2021-01-22 14:02:45 -08:00
Anthony Sottile
4f39946ea3
produce a more useful error message when non-installable things use language_version or additional_dependencies
2021-01-22 13:56:06 -08:00
Anthony Sottile
ffed7beab6
Merge pull request #1770 from pre-commit/remote_branch_ref
...
Expose remote branch ref as an environment variable
2021-01-22 13:48:30 -08:00
surafelabebe
cb5ed6276d
Expose remote branch ref as an environment variable
2021-01-22 13:18:25 -08:00
Anthony Sottile
bb50e00447
Merge pull request #1769 from pre-commit/fix_golang_hello_example
...
fix reference to github.com/golang/example
2021-01-22 13:15:55 -08:00
Anthony Sottile
d57207510d
fix reference to github.com/golang/example
2021-01-22 12:26:22 -08:00
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
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
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
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
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
Anthony Sottile
14f984fbcf
improve xargs when running windows batch files
2020-11-06 13:09:01 -08:00
Anthony Sottile
c972205214
Merge pull request #1684 from pre-commit/migrate_config_less_work
...
only perform migrate_config parsing if it is a list
2020-11-05 16:27:23 -08:00
Anthony Sottile
1975c056bc
Merge pull request #1683 from pre-commit/textwrap_indent
...
use textwrap.indent instead of _indent
2020-11-05 16:22:17 -08:00
Anthony Sottile
b4ab84df58
only perform migrate_config parsing if it is a list
2020-11-05 16:05:41 -08:00
Anthony Sottile
64876697b5
use textwrap.indent instead of _indent
2020-11-05 15:59:46 -08:00
Anthony Sottile
392a1fe16d
Merge pull request #1678 from rkm/dotnet-fix-cleanup
...
fix dotnet build cleanup
2020-11-03 10:33:15 -08:00
Ruairidh MacLeod
aa8023407e
fix dotnet build cleanup
2020-11-03 08:53:17 -08:00
Anthony Sottile
3fa9d3d758
Merge pull request #1677 from MarcoGorelli/types_or
...
Add types_or
2020-11-02 16:01:04 -08:00
Marco Gorelli
62f668fc3f
add types_or
2020-11-02 17:25:10 +00:00
Anthony Sottile
3112e08088
v2.8.2
2020-10-30 13:36:35 -07:00
Anthony Sottile
4aa249c8a5
Merge pull request #1672 from pre-commit/ruby_default
...
don't call rbenv install for language_version = default
2020-10-30 13:22:06 -07:00
Anthony Sottile
e05ac1e91f
don't call ruby install for language_version = default
2020-10-29 19:45:06 -07:00
Anthony Sottile
b2207e5b04
v2.8.1
2020-10-28 23:04:31 -07:00
Anthony Sottile
8fb7365a61
Merge pull request #1669 from pre-commit/not_a_shim_when_home_is_slash
...
allow default language_version of system when homedir is /
2020-10-28 23:03:34 -07:00
Anthony Sottile
62b8d0ed82
allow default language_version of system when homedir is /
2020-10-28 22:56:10 -07:00
Anthony Sottile
711248f678
show features first
2020-10-28 22:01:15 -07:00
Anthony Sottile
a3c9721d8f
v2.8.0
2020-10-28 21:59:03 -07:00
Anthony Sottile
763dbc0ac6
Merge pull request #1668 from pre-commit/avoid_shims
...
don't use system for ruby/node if it is a shim exe
2020-10-28 17:22:27 -07: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
0c339e0647
Merge pull request #1667 from pre-commit/improve_node_install
...
improve node install by using npm pack
2020-10-28 16:03:52 -07:00
Anthony Sottile
29f3e67655
improve node install by using npm pack
2020-10-28 15:13:53 -07:00
Anthony Sottile
2779bde2a2
Merge pull request #1666 from pre-commit/mutable_mapping
...
Replace EnvironT with MutableMapping[str, str]
2020-10-28 14:03:14 -07:00
Anthony Sottile
24dfeed89c
Replace EnvironT with MutableMapping[str, str]
2020-10-28 13:00:25 -07:00
Anthony Sottile
a0c0870b87
Merge pull request #1601 from int3l/distinct_exit_codes
...
Distinct exit codes for the various error cases
2020-10-28 11:59:22 -07:00
int3l
47e758d8f1
Distinct error handling exit codes
...
https://tldp.org/LDP/abs/html/exitcodes.html - exit codes convention
2020-10-28 11:13:04 -07:00
Anthony Sottile
9d0ab3b97b
Merge pull request #1633 from JosephMoniz/add-jvm-coursier-support
...
add coursier (jvm) as a language
2020-10-27 10:13:03 -07:00
Joseph Moniz
70ab1c3b6f
add coursier (jvm) as a language
2020-10-27 09:21:54 -07:00
Anthony Sottile
eee891c8cb
Merge pull request #1662 from pre-commit/pci
...
Add pre-commit.ci
2020-10-26 16:38:49 -07:00
Anthony Sottile
653cdd286b
Add pre-commit.ci
2020-10-26 16:11:27 -07:00
Anthony Sottile
9e4754fb4a
Merge pull request #1616 from pre-commit/zipapp
...
add zipapp support
2020-10-17 11:15:03 -07:00
Anthony Sottile
01f1a0090e
Merge pull request #1643 from MarcoGorelli/negate-pygrep
...
ENH add --negate flag to pygrep
2020-10-17 11:14:19 -07:00
Marco Gorelli
a0658c06bf
add --negate flag to pygrep
2020-10-17 18:50:40 +01:00
Anthony Sottile
6ba50f3aa7
Merge pull request #1644 from MarcoGorelli/clean-pygrep-test
...
Remove unnecessary fixtures in signatures from pygrep tests
2020-10-16 14:27:56 -07:00
Marco Gorelli
2fc676709d
Remove unnecessary fixtures in signatures from pygrep tests
2020-10-16 13:11:18 -07:00
Anthony Sottile
ee1fcfbeca
Merge pull request #1634 from pre-commit/simplify
...
simplify docker run
2020-10-10 18:38:29 -07:00
Anthony Sottile
3584b99caa
simplify docker run
2020-10-10 18:09:51 -07:00
Anthony Sottile
11568caf97
Merge pull request #1637 from pre-commit/conda_test
...
use implementation-agnostic conda package for test
2020-10-10 18:09:09 -07:00
Anthony Sottile
32a286d530
use implementation-agnostic conda package for test
2020-10-10 17:44:56 -07:00
Anthony Sottile
fbd529204b
make an exe stub for windows
2020-09-28 18:37:10 -07:00
Anthony Sottile
bc198b89ca
add zipapp support
2020-09-28 16:57:59 -07:00
Anthony Sottile
202f0bbbc9
Merge pull request #1598 from rkm/feature/dotnet
...
add initial dotnet support
2020-09-27 15:25:56 -07:00
Anthony Sottile
949ea163cd
Merge pull request #1611 from mcsitter/patch-1
...
Update pre-commit version in sample config
2020-09-27 15:16:50 -07:00
Ruairidh MacLeod
003e4c21e0
add initial dotnet support
2020-09-27 15:04:35 -07:00
Maximilian Cosmo Sitter
3de3c6a5fc
Update pre-commit version in sample config
2020-09-27 14:54:42 -07:00
Anthony Sottile
a85b9f798d
Merge pull request #1617 from pre-commit/no_p_default_exe
...
don't pass through -p if using the default version
2020-09-23 18:24:43 -07:00
Anthony Sottile
58a190fd69
don't pass through -p if using the default version
2020-09-23 17:44:18 -07:00
Anthony Sottile
7162a3defe
Merge pull request #1614 from pre-commit/update_rbenv
...
update rbenv / ruby-build
2020-09-23 11:22:17 -07:00
Thomas Romera
36653586a0
update rbenv / ruby-build
2020-09-22 23:03:01 -07:00
Anthony Sottile
1b3d14237a
Merge pull request #1608 from pre-commit/spelling
...
fix a few spelling errors
2020-09-20 19:42:27 -07:00
Anthony Sottile
365f896c36
fix a few spelling errors
...
found via `pre-commit try-repo https://github.com/codespell-project/codespell --all-files`
2020-09-20 19:21:24 -07:00
Anthony Sottile
f13dcac9ef
Merge pull request #1606 from pre-commit/move_cygwin_mismatch
...
check cygwin mismatch earlier
2020-09-20 11:14:51 -07:00
Anthony Sottile
91530f1005
check cygwin mismatch earlier
2020-09-20 10:42:11 -07:00
Anthony Sottile
3e2b9dc91a
Merge pull request #1603 from pre-commit/no_format_executable
...
Fix ruby hooks when --format-executable is in gemrc
2020-09-18 09:37:41 -07:00
Anthony Sottile
13eed4ac5b
Fix ruby hooks when --format-executable is in gemrc
...
I used this gemrc to break things (default on opensuse):
```yaml
---
:benchmark: false
:install: --format-executable --no-user-install
install: --format-executable --no-user-install
:backtrace: true
:update_sources: true
:format_executable: true
:verbose: true
:update: --format-executable --no-user-install
update: --format-executable --no-user-install
:bulk_threshold: 1000
:sources:
- https://rubygems.org
```
2020-09-18 09:13:19 -07:00
Anthony Sottile
801a31302d
Merge pull request #1599 from pre-commit/remove_hardcoded_c_python
...
remove hardcoded python location
2020-09-15 12:44:52 -07:00
Anthony Sottile
4888644990
remove hardcoded python location
2020-09-15 12:04:25 -07:00
Anthony Sottile
8f32c5b929
Merge pull request #1595 from Celeborn2BeAlive/1583-wrong-shebang-line-win10-pyenvwin
...
Drop python.exe extension on windows in shebang line to fix pyenv-win setup
2020-09-09 13:19:39 -07:00
Celeborn2BeAlive
273326b89b
drop python.exe extension on windows on shebang
2020-09-09 12:42:48 -07:00
Anthony Sottile
8e9f927e3d
Merge pull request #1592 from pre-commit/ws_traceback
...
fix excess whitespace in traceback in error
2020-09-07 15:23:16 -07:00
Anthony Sottile
3a0406847b
fix excess whitespace in traceback in error
2020-09-07 15:01:50 -07:00
Anthony Sottile
918821b7e0
Merge pull request #1590 from pre-commit/nodeenv_system_healthy_fix
...
fix for node healthy() when system executable moves
2020-09-07 14:24:11 -07:00
Anthony Sottile
b149c7a344
fix for node healthy() when system executable moves
2020-09-07 13:23:02 -07:00
Anthony Sottile
f511afe40e
v2.7.1
2020-08-23 10:53:21 -07:00
Anthony Sottile
7c804cabe6
Merge pull request #1577 from pre-commit/os_replace
...
fix atomic file replace on windows
2020-08-23 10:49:14 -07:00
Anthony Sottile
fe70c72691
Merge pull request #1576 from pre-commit/immediately_unhealthy_cache
...
fix cache of invalidated unhealthy environment version info
2020-08-23 10:49:07 -07:00
Anthony Sottile
79b098c409
fix atomic file replace on windows
2020-08-23 10:18:59 -07:00
Anthony Sottile
b63b37ac36
fix cache of invalidated unhealthy environment version info
2020-08-23 10:17:24 -07:00
Anthony Sottile
2e0ee5f5b2
Merge pull request #1572 from rkm/issues/1569-docker-perf
...
remove docker_is_running check from source
2020-08-22 18:03:50 -07:00
Ruairidh MacLeod
eb8b48aeb4
remove docker_is_running check from source
...
Moved to testing.util so it can be used for the skipif_cant_run_docker
test hooks.
2020-08-22 17:33:32 -07:00
Anthony Sottile
f1de792877
v2.7.0
2020-08-22 13:31:12 -07:00
Anthony Sottile
a438dbfcf6
Merge pull request #1570 from pre-commit/readonly
...
allow pre-commit to succeed on a readonly store directory
2020-08-22 11:19:11 -07:00
Anthony Sottile
bf33f4c91c
allow pre-commit to succeed on a readonly store directory
2020-08-22 10:51:57 -07:00
Anthony Sottile
9a5461db24
Merge pull request #1566 from thetradedesk/master
...
Save diff between hook executions
2020-08-21 21:02:09 -07:00
Johan Henkens
4063730925
Save diff between hook executions
2020-08-21 20:41:06 -07:00
Anthony Sottile
4f5cb99ff5
Merge pull request #1544 from pre-commit/wip_warning_on_old_config_style
...
warn on old list-style configuration
2020-07-25 14:27:08 -07:00
Anthony Sottile
e384c182bc
Merge pull request #1546 from pre-commit/error_logging_read_only_filesystem
...
better error handling when Store is readonly
2020-07-25 13:10:39 -07:00
Anthony Sottile
68510596d3
warn on old list-style configuration
2020-07-25 13:04:54 -07:00
Anthony Sottile
cee834bb5e
better error handling when Store is readonly
2020-07-25 12:32:54 -07:00
Anthony Sottile
c0f750d9b3
Merge pull request #1539 from singergr/feat/no-allow-missing-config
...
Add --no-allow-missing-config option to init-templatedir
2020-07-20 19:21:11 -07:00
Greg Singer
1b435f1f1f
add init-templatedir --no-allow-missing-config
...
Add a `--no-allow-missing-config` option to the `init-templatedir`
command. Enable configuration of a Git template that requires newly
cloned repos to have a `pre-commit` config.
2020-07-20 19:02:35 -07:00
Anthony Sottile
0e851bdf75
Merge pull request #1535 from pre-commit/require_healthy_after_install
...
require healthy() after installation
2020-07-17 11:50:09 -07:00
Anthony Sottile
7da72563dd
require healthy() after installation
2020-07-15 21:07:21 -07:00
Anthony Sottile
2f1d4d10e0
Merge pull request #1531 from pre-commit/upgrade_mypy
...
upgrade mypy to get typeshed fixes
2020-07-08 14:22:23 -07:00
Anthony Sottile
c9ad2e1451
upgrade mypy to get typeshed fixes
2020-07-08 13:55:28 -07:00
Anthony Sottile
6fe1702ee1
v2.6.0
2020-07-01 12:39:34 -07:00
Anthony Sottile
e2fe94cbe7
Merge pull request #1521 from pre-commit/npm_config_userconfig
...
fix node hooks when NPM_CONFIG_USERCONFIG is set
2020-06-19 14:15:32 -07:00
Anthony Sottile
6ec47ea736
fix node hooks when NPM_CONFIG_USERCONFIG is set
2020-06-19 13:58:14 -07:00
Anthony Sottile
7d46852aa9
Merge pull request #1518 from pre-commit/xfail_node_windows
...
xfail a flaky node test on windows
2020-06-17 22:42:18 -07:00
Anthony Sottile
1392471854
xfail a flaky node test on windows
2020-06-17 12:55:30 -07:00
Anthony Sottile
a336a6b0b5
Merge pull request #1506 from Pierre-Sassoulas/master
...
Add three missing required dependencies in CONTRIBUTING.md
2020-06-15 14:19:03 -07:00
Anthony Sottile
ecaf70128a
Merge pull request #1509 from pre-commit/system_language_version_ruby
...
skip rbenv if ruby and gem are installed with default language_version
2020-06-15 14:13:44 -07:00
Anthony Sottile
e1e6a32c51
skip rbenv if ruby and gem are installed with default language_version
2020-06-15 13:50:47 -07:00
Pierre Sassoulas
fd53cdea17
Add foor missing required dependencies in CONTRIBUTING.md
...
There could still be missing dependencies, I'm not using a fresh environement
to test that. Also added the specific required git version see
https://github.com/git/git/blob/master/Documentation/RelNotes/2.24.0.txt
2020-06-12 18:38:44 +02:00
Anthony Sottile
0e5eb19929
v2.5.1
2020-06-09 14:18:42 -07:00
Anthony Sottile
8ffcd386ae
Merge pull request #1497 from pre-commit/no_recurse_clone
...
prevent infinite recursion of post-checkout on clone
2020-06-09 14:15:35 -07:00
Anthony Sottile
6ee9e13b26
prevent infinite recursion of post-checkout on clone
2020-06-09 10:18:22 -07:00
Anthony Sottile
2f25085d60
v2.5.0
2020-06-08 15:17:13 -07:00
Anthony Sottile
e69e3e04a1
Merge pull request #1494 from pre-commit/normalize_slashes_more
...
normalize slashes even earlier on windows for filenames
2020-06-08 15:08:24 -07:00
Anthony Sottile
5fb721f7a7
normalize slashes even earlier on windows for filenames
2020-06-08 14:53:27 -07:00
Anthony Sottile
79359ed4e2
Merge pull request #1480 from pre-commit/random_meth
...
use the shuffle method of Random instead
2020-05-31 12:59:41 -07:00
Anthony Sottile
e120828042
use the shuffle method of Random instead
2020-05-31 12:42:17 -07:00
Anthony Sottile
d71699d7cd
Merge pull request #1474 from pre-commit/unicode_error_py_launcher
...
avoid a UnicodeError on windows with non-charmap characters
2020-05-27 15:02:41 -07:00
Anthony Sottile
0781dac78f
avoid a UnicodeError on windows with non-charmap characters
2020-05-27 13:14:29 -07:00
Anthony Sottile
42562a12ed
Merge pull request #1471 from pre-commit/all-repos_autofix_faster-tests
...
slightly speed up tests by avoiding pre-commit install
2020-05-26 22:26:20 -07:00
Anthony Sottile
254c42864b
slightly speed up tests by avoiding pre-commit install
...
Committed via https://github.com/asottile/all-repos
2020-05-26 21:53:16 -07:00
Anthony Sottile
ab63f9393f
Merge pull request #1467 from tech-chad/env_variable_pre-commit
...
Expose an env variable that indicates if pre-commit is running
2020-05-23 19:01:40 -07:00
Chad Larson
9e0b4a9d4d
pre-commit env var exposed
2020-05-23 17:20:26 -05:00
Anthony Sottile
f32bc648f0
Merge pull request #1450 from pre-commit/all-repos_autofix_pre-commit-autoupdate
...
Run pre-commit autoupdate
2020-05-11 15:32:04 -07:00
Anthony Sottile
6f2e869213
Run pre-commit autoupdate
...
Committed via https://github.com/asottile/all-repos
2020-05-11 14:15:20 -07:00
Anthony Sottile
9641434163
v2.4.0
2020-05-11 12:31:10 -07:00
Anthony Sottile
b3c0eab7dc
Merge pull request #1448 from pre-commit/refuse_migrating_invalid_config
...
refuse to migrate an invalid configuration
2020-05-10 19:48:06 -07:00
Anthony Sottile
9b8e3d082d
refuse to migrate an invalid configuration
2020-05-10 18:02:37 -07:00
Anthony Sottile
46f5cc9609
Merge pull request #1442 from tdeo/tdeo/ruby_gem_path
...
Unset GEM_PATH for ruby hooks
2020-05-10 12:42:54 -07:00
Thierry Deo
b44461da33
Unset GEM_PATH for ruby hooks
2020-05-10 12:12:15 -07:00
Anthony Sottile
d89486b0f0
oh right, needs a no-cover for xfail
2020-05-10 12:06:27 -07:00
Anthony Sottile
2e47f2dc72
xfail this one too
2020-05-10 11:30:37 -07:00
Anthony Sottile
8db02bd550
xfail these tests on windows (access violation in npm)
2020-05-08 15:55:10 -07:00
Anthony Sottile
182658c88c
Merge pull request #1443 from pre-commit/realpath_cache_dir
...
Use the real path of the cache root
2020-05-08 15:48:00 -07:00
Anthony Sottile
4c154c3019
Use the real path of the cache root
2020-05-08 14:22:57 -07:00
Anthony Sottile
450d617dec
Merge pull request #1435 from marcjay/maintain-scalar-quotes-rev-autoupdate
...
Maintain scalar quoting style when autoupdate re-writes rev
2020-05-04 19:41:50 -07:00
Marc Jay
98d8a3d60f
Maintain scalar quoting style when autoupdate re-writes rev
...
If rev is wrapped in single or double quotes (e.g. due to a yamllint quoted-strings rule), when
re-writing the rev to update it, honour the existing quotation style
2020-05-04 19:29:03 -07:00
Anthony Sottile
f455312944
Merge pull request #1431 from pre-commit/better_healthy
...
Improve python healthy() and eliminate python_venv
2020-05-04 10:52:59 -07:00
Anthony Sottile
e65ea5ede0
Merge pull request #1432 from skmatz/patch-1
...
Fix some typos
2020-05-03 22:25:23 -07:00
Shunta Komatsu
c2375f2fa8
Fix typo
2020-05-04 14:16:53 +09:00
Anthony Sottile
3d50b3736a
Improve python healthy() and eliminate python_venv
...
- the `healthy()` check now requires virtualenv 20.x's metadata
- `python_venv` is obsolete now that `virtualenv` generates the same structure
and `virtualenv` is more portable
2020-05-03 21:55:48 -07:00
Anthony Sottile
0c481ea51d
Merge pull request #1429 from pre-commit/minor
...
yay french strings
2020-05-02 19:22:16 -07:00
Anthony Sottile
df01824d10
Merge pull request #1422 from domodwyer/bugfix/stash-with-post-checkout-hook
...
fix hooks firing during staged_files_only
2020-05-02 14:47:38 -07:00
Dom
928938a6a1
fix hooks firing during staged_files_only
2020-05-02 14:00:21 -07:00
Anthony Sottile
5ed3f5649b
Merge pull request #1428 from scop/golang-empty-dummy-module
...
Add dummy go.mod for local "empty" installs
2020-05-02 13:23:29 -07:00
Anthony Sottile
3b728fdb76
yay french strings
2020-05-02 11:37:31 -07:00
Ville Skyttä
e2ed73209a
Add dummy go.mod for local "empty" installs
2020-05-02 21:02:36 +03:00
Anthony Sottile
0670e0b287
Merge pull request #1421 from pre-commit/quiet_you_pip
...
disable pip version check in python hooks
2020-04-29 21:26:16 -07:00
Anthony Sottile
e492a5578c
disable pip version check in python hooks
2020-04-29 12:11:34 -07:00
Anthony Sottile
ec6ba99715
Merge pull request #1415 from ModischFabrications/post_commit
...
Implement post-commit
2020-04-28 11:16:08 -07:00
ModischFabrications
26adf1d560
add support for post-commit
2020-04-27 10:55:22 -07:00
Anthony Sottile
3b3b33ea29
Merge pull request #1413 from ModischFabrications/patch-1
...
Update CONTRIBUTING.md
2020-04-26 18:46:25 -07:00
Robin Modisch
3ff133c166
add instructions to activate virtualenvs on windows
2020-04-26 18:06:39 -07:00
Anthony Sottile
bcff73c9cc
v2.3.0
2020-04-22 14:16:23 -07:00
Anthony Sottile
54fdd6ae5f
Merge pull request #1402 from utek/preserve_line_endings
...
Preserve line ending when running autoupdate
2020-04-19 09:50:59 -07:00
Lukasz Boldys
13d528c569
Preserve line ending when running autoupdate
2020-04-19 09:12:02 -07:00
Anthony Sottile
2960549682
Merge pull request #1399 from pre-commit/upgrade_pip_on_windows
...
Allow pip to be upgradable on windows
2020-04-17 08:21:46 -07:00
Anthony Sottile
522e82b7b7
Allow pip to be upgradable on windows
2020-04-17 07:41:11 -07:00
Anthony Sottile
171fd18ba5
Merge pull request #1395 from pre-commit/argument_length
...
validate argument length as part of hook-impl
2020-04-15 13:46:13 -07:00
Anthony Sottile
80a59db094
validate argument length as part of hook-impl
2020-04-15 12:30:44 -07:00
Anthony Sottile
282527ef16
Merge pull request #1388 from pre-commit/node_default_system
...
Default to `language_version: system` if node and npm are installed
2020-04-09 16:48:18 -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
30a36a8a00
Merge pull request #1382 from pre-commit/better_windows_color
...
support colors on windows during git better
2020-04-02 07:48:17 -07:00
Anthony Sottile
9fc5a9316e
support colors on windows during git better
2020-04-02 00:10:37 -07:00
Anthony Sottile
34e9d11786
Merge pull request #1378 from sophgn/master
...
fix CJK characters width in output
2020-03-28 08:20:56 -07:00
zjeuhpiung liu
605b39f617
fix CJK characters width in output
2020-03-28 08:06:49 -07:00
Anthony Sottile
528c7afd18
Merge pull request #1371 from killuazhu/windows-no-user
...
Don't use --user when running docker on windows
2020-03-20 08:27:07 -07:00
KYLE ZHU
23d5b78fdb
Don't use --user when running docker on windows
2020-03-19 21:55:16 -07:00
Anthony Sottile
bb6f1efe63
Fix issue link
2020-03-13 23:26:51 -07:00
Anthony Sottile
30d3bb2990
v2.2.0
2020-03-12 12:37:15 -07:00
Anthony Sottile
1e0db9c2c8
Fix help description for --from-ref and --to-ref
2020-03-12 12:27:54 -07:00
Anthony Sottile
74c582fb04
Merge pull request #1364 from pre-commit/exec_error_no_shebang
...
Don't crash out on OSErrors in subprocess calls
2020-03-12 11:15:40 -07:00
Anthony Sottile
03617b2f98
Don't crash out on OSErrors in subprocess calls
2020-03-12 10:52:10 -07:00
Anthony Sottile
58a16bcf57
Merge pull request #1363 from pre-commit/broken_symlinks_healthy
...
mark a python environment as unhealthy if python goes missing
2020-03-12 10:07:47 -07:00
Anthony Sottile
7a49309035
mark a python environment as unhealthy if python goes missing
2020-03-12 09:40:56 -07:00
Anthony Sottile
1c10340943
Merge pull request #1359 from pre-commit/bytesable_exceptions
...
Don't crash on un-stringable exceptions
2020-03-10 09:45:32 -07:00
Anthony Sottile
01be1713cf
Don't crash on un-stringable exceptions
2020-03-10 09:02:51 -07:00
Anthony Sottile
0a8ba31b9b
Merge pull request #1349 from pre-commit/covdefaults
...
Use covdefaults to handle coveragerc
2020-02-29 15:10:32 -08:00
Anthony Sottile
67c1beb322
Use covdefaults to handle coveragerc
2020-02-29 14:25:19 -08:00
Anthony Sottile
4a3b10f0ed
Merge pull request #1346 from pre-commit/3_6_1_plus
...
Drop python 3.6.0 support (broken NamedTuple)
2020-02-24 09:52:59 -08:00
Anthony Sottile
b2b5676698
Drop python 3.6.0 support (broken NamedTuple)
2020-02-24 09:34:55 -08:00
Anthony Sottile
db6124482d
Merge tag 'v2.1.1'
2020-02-24 09:07:39 -08:00
Anthony Sottile
ccf84fb698
v2.1.1
2020-02-24 09:04:36 -08:00
Anthony Sottile
081f3028ee
Temporarily restore python 3.6.0 support
2020-02-24 09:02:19 -08:00
Anthony Sottile
5e21e0bec6
Merge pull request #1345 from pre-commit/fix_coverage
...
Fix test coverage
2020-02-23 15:07:52 -08:00
Anthony Sottile
1b93e26b58
Fix test coverage
2020-02-23 14:53:03 -08:00
Anthony Sottile
92f433c3cf
Merge pull request #1344 from pre-commit/post_checkout_no_files
...
Ensure files aren't passed to post-checkout hooks
2020-02-23 12:49:23 -08:00
Anthony Sottile
53052fe019
Ensure files aren't passed to post-checkout hooks
2020-02-23 11:38:16 -08:00
Anthony Sottile
2d2ea15246
Merge pull request #1343 from pre-commit/from_ref_to_ref
...
Make more readable --from-ref / --to-ref aliases for --source / --origin
2020-02-23 11:21:21 -08:00
Anthony Sottile
d35b00352f
Make more readable --from-ref / --to-ref aliases for --source / --origin
2020-02-23 11:07:57 -08:00
Anthony Sottile
566f1afcd4
Merge pull request #1339 from andrewhare/andrewhare/post-checkout
...
Add post-checkout
2020-02-23 10:39:28 -08:00
Anthony Sottile
05f486ef49
Merge pull request #1341 from particledecay/catch_commit-msg_missing_arg
...
Detect missing arg for prepare-commit-msg and commit-msg
2020-02-23 10:30:44 -08:00
Andrew Hare
18fa004254
Add post-checkout
2020-02-23 10:22:18 -08:00
Joey Espinosa
5258dce73b
fix: catch missing arg if using {prepare-}commit-msg stage
...
If using the prepare-commit-msg and commit-msg stages specifically (such
as with the try-repo command), the `--commit-msg-filename` arg must be
provided.
[fixes #1336 ]
chore: improve error message for hook stage check
2020-02-23 10:15:59 -08:00
Anthony Sottile
1c641b1c28
v2.1.0
2020-02-18 10:53:53 -08:00
Anthony Sottile
dbdb8f7606
Merge pull request #1334 from ddelange/badge
...
Add pre-commit badge
2020-02-14 11:12:12 -08:00
david
5f64b1a255
Add pre-commit badge
2020-02-14 10:49:03 -08:00
Anthony Sottile
524bdaeb33
Merge pull request #1319 from pre-commit/better_shebang_detection
...
Improve git hook shebang creation
2020-02-07 09:27:13 -08:00
Anthony Sottile
cc45b5e57b
Improve git hook shebang creation
2020-02-07 09:09:17 -08:00
Anthony Sottile
659086f22f
Merge pull request #1318 from pre-commit/unnecessary_quoted_annotation
...
Remove unnecessary forward annotations
2020-02-07 08:54:40 -08:00
Anthony Sottile
fa8d022813
Remove unnecessary forward annotations
2020-02-07 08:32:39 -08:00
Anthony Sottile
78f406af8a
Merge pull request #1311 from pre-commit/unused_latest_git_sh
...
delete unused testing/latest-git.sh
2020-02-03 14:23:55 -08:00
Anthony Sottile
8d2af32e4d
delete unused testing/latest-git.sh
2020-02-03 14:06:51 -08:00
Anthony Sottile
60f30cd827
Merge pull request #1303 from scop/perl
...
Perl hook support
2020-02-03 12:59:52 -08:00
Anthony Sottile
977bbd7643
put strawberry perl on the beginning of the PATH for windows
2020-02-03 12:42:10 -08:00
Anthony Sottile
44f5753bd8
shlex-quote install path to fix windows
2020-02-03 10:39:08 -08:00
Ville Skyttä
04471f7d97
Add perl additional dependencies test
2020-02-01 16:13:01 +02:00
Ville Skyttä
1295364986
Add basic perl repo test
2020-02-01 15:41:14 +02:00
Ville Skyttä
aee7843bec
Add perl to gen-languages-all
2020-02-01 15:20:25 +02:00
Anthony Sottile
11c55fd4c2
Merge pull request #1306 from pre-commit/sort_keys_False
...
Replace aspy.yaml with sort_keys=False
2020-01-31 17:36:49 -08:00
Anthony Sottile
a64fa6d478
Replace aspy.yaml with sort_keys=False
2020-01-31 17:18:59 -08:00
Ville Skyttä
bb29630d57
First cut at Perl hook support
2020-01-30 09:19:58 +02:00
Anthony Sottile
f0ee93c5a7
v2.0.1
2020-01-29 17:57:05 -08:00
Anthony Sottile
eee3c759b6
Merge pull request #1302 from pre-commit/3_6_0
...
Fix pre-commit in python 3.6.0-3.6.1
2020-01-29 17:56:15 -08:00
Anthony Sottile
9e4dc7f349
Fix pre-commit in python 3.6.0-3.6.1
2020-01-29 17:40:16 -08:00
Anthony Sottile
0cc199d351
v2.0.0
2020-01-28 18:38:55 -08:00
Anthony Sottile
6c2a14839e
Merge pull request #1299 from pre-commit/hookspath_init_templatedir
...
allow init-templatedir to succeed when core.hooksPath is set
2020-01-28 13:11:16 -08:00
Anthony Sottile
d56fdca618
allow init-templatedir to succeed when core.hooksPath is set
2020-01-28 12:43:18 -08:00
Anthony Sottile
f74e3031bd
Merge pull request #1292 from pre-commit/hook_impl
...
Move most of the actual hook script into `pre-commit hook-impl`
2020-01-22 09:01:06 -08:00
Anthony Sottile
95b8d71bd9
Move most of the actual hook script into pre-commit hook-impl
2020-01-21 16:41:22 -08:00
Anthony Sottile
627c9eb0bf
Merge pull request #1293 from schiermike/master
...
exclude GIT_SSL_NO_VERIFY env variable from getting stripped
2020-01-21 15:40:31 -08:00
Michael Schier
d9800ad95a
exclude GIT_SSL_NO_VERIFY env variable from getting stripped
2020-01-21 15:17:03 -08:00
Anthony Sottile
93152218a7
Merge pull request #1295 from pre-commit/ap_bash_broken
...
work around broken bash in azure pipelines
2020-01-21 15:15:52 -08:00
Anthony Sottile
32d32e3743
work around broken bash in azure pipelines
2020-01-21 14:58:03 -08:00
Anthony Sottile
dde988bd38
Merge pull request #1288 from dmbarreiro/push_remote
...
Push remote env var details
2020-01-16 13:39:06 -08:00
Anthony Sottile
0bb8a8fabe
Move test to install_uninstall test so environment variables apply
2020-01-16 13:02:20 -08:00
David Martinez Barreiro
57cc814b8b
Push remote env var details
2020-01-16 12:35:04 -08:00
Anthony Sottile
b66d28964b
Merge pull request #1289 from pre-commit/only_versioned_python
...
Use a more specific hook shebang now that it can't be python 2
2020-01-16 10:42:06 -08:00
Anthony Sottile
2f51b9da1c
Use a more specific hook shebang now that it can't be python 2
2020-01-16 09:57:41 -08:00
Anthony Sottile
31c4c37156
Merge pull request #1287 from pre-commit/move_hook
...
move Hook data type to a separate file
2020-01-15 14:37:30 -08:00
Anthony Sottile
755b8000f6
move Hook data type to a separate file
2020-01-15 14:20:51 -08:00
Anthony Sottile
5a62501307
Merge pull request #1282 from pre-commit/cleanup
...
More miscellaneous cleanup
2020-01-13 12:47:28 -08:00
Anthony Sottile
df40e862f4
More miscellaneous cleanup
2020-01-13 11:47:34 -08:00
Anthony Sottile
489d9f9926
Merge pull request #1281 from pre-commit/py2_cleanup_more
...
Some manual python 2 cleanup
2020-01-12 15:46:34 -08:00
Anthony Sottile
251721b890
os.symlink is always an attribute in py3
2020-01-12 13:39:53 -08:00
Anthony Sottile
5706b9149c
deep listdir works in python3 on windows
2020-01-12 13:39:53 -08:00
Anthony Sottile
5779f93ec6
keyword only arguments in some places
2020-01-12 13:39:53 -08:00
Anthony Sottile
34c3a1580a
unrelated cleanup
2020-01-12 13:39:53 -08:00
Anthony Sottile
49cf490697
Remove noop_context
2020-01-12 13:39:53 -08:00
Anthony Sottile
2a9893d0f0
mkdirp -> os.makedirs(..., exist_ok=True)
2020-01-12 13:39:53 -08:00
Anthony Sottile
67c2dcd90d
Remove pre_commit.five
2020-01-12 13:39:53 -08:00
Anthony Sottile
f33716cc17
Remove usage of OrderedDict
2020-01-12 13:39:53 -08:00
Anthony Sottile
5e52a657df
Remove unused ruby activate script
2020-01-12 13:39:53 -08:00
Anthony Sottile
5d767bbc49
Replace match.group(n) with match[n]
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
aefbe71765
Clean up calls to .encode() / .decode()
2020-01-12 10:46:33 -08:00
Anthony Sottile
b2faf339ce
Merge pull request #1277 from pre-commit/pyupgrade
...
Drop python 2 / python3.5 support in pre-commit
2020-01-12 10:41:30 -08:00
Anthony Sottile
76a184eb07
Update get-swift for bionic
2020-01-12 10:15:02 -08:00
Anthony Sottile
4eea90c26c
leverage mypy to check language implementations
2020-01-12 10:15:02 -08:00
Anthony Sottile
327ed924a3
Add types to pre-commit
2020-01-12 10:15:01 -08:00
Anthony Sottile
fa536a8693
mypy passes with check_untyped_defs
2020-01-12 09:27:04 -08:00
Anthony Sottile
ab19b94811
some manual py2 cleanups
2020-01-12 09:27:04 -08:00
Anthony Sottile
30c1e8289f
upgrade hooks, pyupgrade pre-commit
2020-01-12 09:27:04 -08:00
Anthony Sottile
764c765d29
Merge pull request #1276 from orcutt989/issue-#1273
...
fix prog arg to return correct version
2020-01-10 16:07:59 -08:00
orcutt989
c7d938c2c4
corrected styling
2020-01-10 18:49:21 -05:00
orcutt989
2cf127f2d3
fix prog arg to return correct version
2020-01-10 18:43:13 -05:00
Anthony Sottile
75043079d0
Merge pull request #1275 from flaudisio/fix-release-date-in-changelog
...
Fix the v1.21.0 release date in Changelog
2020-01-09 12:36:20 -08:00
Flaudísio Tolentino
8f109890c2
Fix the v1.21.0 release date in Changelog
...
Signed-off-by: Flaudísio Tolentino <flaudisio@gmail.com>
2020-01-09 17:21:18 -03:00
Anthony Sottile
ef583d2fde
Merge pull request #1269 from pre-commit/remove_tags_only
...
Remove autoupdate --tags-only option
2020-01-08 20:04:01 -08:00
Anthony Sottile
300eb6b902
Merge pull request #1268 from pre-commit/remove_prce
...
Remove deprecated `pcre` language
2020-01-08 20:03:52 -08:00
Anthony Sottile
ae97bb5068
Remove autoupdate --tags-only option
2020-01-05 14:04:41 -08:00
Anthony Sottile
97e3371046
Remove deprecated pcre language
2020-01-05 13:58:44 -08:00
Anthony Sottile
3fadbefab9
Fix git version number in changelog
2020-01-02 13:05:57 -08:00
Anthony Sottile
db46dc79bb
Fix one of the issue links
2020-01-02 10:28:45 -08:00
Anthony Sottile
23762d39ba
v1.21.0
2020-01-02 09:46:01 -08:00
Anthony Sottile
f5e7337db6
Merge pull request #1263 from pre-commit/clear_frozen
...
clear 'frozen: ...' comment if autoupdate unfreezes
2020-01-01 23:58:10 -05:00
Anthony Sottile
35caf115f8
clear 'frozen: ...' comment if autoupdate unfreezes
2020-01-01 20:21:42 -08:00
Anthony Sottile
cd57ba90f5
Merge pull request #1262 from yhoiseth/patch-1
...
Make URL clickable
2020-01-01 11:09:46 -05:00
Yngve Høiseth
d8b54ddf4a
Make URL clickable
...
I added a space after as well in order to make it look more balanced.
2020-01-01 15:27:27 +01:00
Anthony Sottile
2500767f1b
Merge pull request #1259 from pre-commit/try_repo_bare
...
Allow try-repo to work on bare repositories
2019-12-30 14:30:05 -05:00
Anthony Sottile
968b2fdaf1
Allow try-repo to work on bare repositories
2019-12-30 11:00:45 -08:00
Anthony Sottile
3a72fb39cb
Merge pull request #1257 from pre-commit/duration
...
Add duration to verbose run
2019-12-28 21:48:54 -05:00
Anthony Sottile
0c0427bfbd
Add duration to verbose run
2019-12-28 18:20:10 -08:00
Anthony Sottile
1074b39988
Merge pull request #1256 from pre-commit/freeze
...
Implement `pre-commit autoupdate --freeze`
2019-12-28 16:26:58 -05:00
Anthony Sottile
8a3c740f9e
Implement pre-commit autoupdate --freeze
2019-12-28 13:07:39 -08:00
Anthony Sottile
32ce682238
Merge pull request #1210 from pre-commit/pre_merge_commit
...
support pre-merge-commit
2019-12-27 00:46:38 -05:00
Anthony Sottile
c699e255a1
support pre-merge-commit
2019-12-26 21:21:00 -08:00
Anthony Sottile
bf68512e7d
Merge pull request #1254 from igankevich/master
...
Add GIT_SSL_CAINFO environment variable to whitelist.
2019-12-26 13:22:19 -05:00
Ivan Gankevich
8c93896c48
Add GIT_SSL_CAINFO environment variable to whitelist.
...
This commit fixes #1253 .
2019-12-26 12:43:55 +03:00
Anthony Sottile
40e0b2c57f
Merge pull request #1252 from pre-commit/normalize_crlf
...
Normalize crlf in tests
2019-12-23 22:33:35 -05:00
Anthony Sottile
4941ed58d5
Normalize crlf in tests
2019-12-23 18:27:30 -08:00
Anthony Sottile
517c3145f4
Merge pull request #1251 from pre-commit/calledprocesserror_cleanups
...
A few cleanups for CalledProcessError to hopefully make it more readable
2019-12-23 21:05:43 -05:00
Anthony Sottile
b90412742e
A few cleanups for CalledProcessError to hopefully make it more readable
2019-12-23 17:46:48 -08:00
Anthony Sottile
83f0802578
Merge pull request #1249 from pre-commit/simpler_verbose
...
Make verbose output less special
2019-12-23 19:09:31 -05:00
Anthony Sottile
01a628d96d
Make verbose output less special
2019-12-23 15:51:58 -08:00
Anthony Sottile
74fd04c67e
Merge pull request #1248 from pre-commit/top_level_files
...
Add top-level `files` key for inclusion
2019-12-23 15:23:12 -05:00
Anthony Sottile
6af0e33eed
Add top-level files key for inclusion
2019-12-23 12:04:05 -08:00
Anthony Sottile
0ecd50b80d
Merge pull request #1232 from xhochy/conda-language
...
Support for conda as a language
2019-12-20 19:06:21 -08:00
Uwe L. Korn
4ff23b4eab
Support for conda as a language
2019-12-20 18:43:59 -08:00
Anthony Sottile
6850c27dd6
Merge pull request #1237 from pre-commit/actual_environment_python_test
...
Create an actual environment for python healthy() types test
2019-12-06 15:05:02 -08:00
Anthony Sottile
2cff185c00
Revert "Fix step template breakage"
...
This reverts commit dc612f0219 .
2019-12-06 13:35:28 -08:00
Anthony Sottile
f6b0c135ce
Create an actual environment for python healthy() types test
2019-12-06 13:31:08 -08:00
Anthony Sottile
fe10811e29
Merge pull request #1236 from pre-commit/future_proof_parse_shebang_test
...
Use echo instead of python in parse_shebang_test
2019-12-06 13:08:31 -08:00
Anthony Sottile
9fada617b9
Use echo instead of python in parse_shebang_test
2019-12-06 11:54:53 -08:00
Anthony Sottile
cb36410c91
Merge pull request #1234 from pre-commit/step_template_breakage
...
Fix step template breakage
2019-12-06 09:51:28 -08:00
Anthony Sottile
2bdbd9e7a0
Fix for newest git
2019-12-06 09:27:19 -08:00
Anthony Sottile
dc612f0219
Fix step template breakage
2019-12-06 09:08:26 -08:00
Anthony Sottile
023b337ff0
Merge pull request #1224 from pre-commit/better_error_inside_dotgit
...
Show better error message when running inside `.git`
2019-11-18 15:15:23 -08:00
Anthony Sottile
0760bec3ff
Show better error message when running inside .git
2019-11-18 14:57:41 -08:00
Anthony Sottile
0fd4a2ea38
Merge pull request #1201 from ryanrhee/rhee/grammar
...
grammar
2019-11-01 08:34:35 -07:00
Ryan Rhee
addc7045ba
grammar
2019-11-01 11:33:04 -04:00
Anthony Sottile
6d4487e4b4
Merge pull request #1200 from ryanrhee/rhee/color
...
[xargs] Update docblock comment
2019-11-01 07:21:33 -07:00
Ryan Rhee
8dd05c9fce
[xargs] Update docblock
2019-11-01 10:03:07 -04:00
Anthony Sottile
0bc40bc4ea
v1.20.0
2019-10-28 16:29:59 -07:00
Anthony Sottile
d09930469c
Merge pull request #1197 from pre-commit/bump_sample_config
...
Bump the version of pre-commit-hooks in sample-config
2019-10-28 16:20:46 -07:00
Anthony Sottile
54359fff39
Bump the version of pre-commit-hooks in sample-config
2019-10-28 15:21:28 -07:00
Anthony Sottile
7d5f98b6a0
Merge pull request #1196 from pre-commit/mkdirp
...
Fix rare first-run race with creation of pre-commit directory
2019-10-28 15:14:21 -07:00
Anthony Sottile
8ff880faa6
Fix rare first-run race with creation of pre-commit directory
2019-10-28 14:56:03 -07:00
Anthony Sottile
6970827a84
Merge pull request #1195 from choffee/master
...
Update ruby-build to latest version
2019-10-28 13:25:12 -07:00
John Cooper
1bd745eccf
Added new versions of rbenv and ruby-build
2019-10-28 19:54:14 +00:00
Anthony Sottile
f1b6a7842a
v1.19.0
2019-10-26 12:45:55 -07:00
Anthony Sottile
7728162d7a
Merge pull request #1185 from pre-commit/healthy_types
...
Fix python.healthy() check with stdlib module clashes
2019-10-22 13:58:24 -07:00
Anthony Sottile
bfcee8ec9f
Fix python.healthy() check with stdlib module clashes
2019-10-22 13:23:57 -07:00
Anthony Sottile
1509dc497e
Merge pull request #1179 from pre-commit/normalize_paths_to_forward_slashes
...
Normalize paths on windows to forward slashes
2019-10-19 15:08:56 -07:00
Anthony Sottile
707407dd49
Normalize paths on windows to forward slashes
2019-10-19 14:45:23 -07:00
Anthony Sottile
4bd6529c05
Merge pull request #1176 from pre-commit/importlib_metadata_py38
...
Use importlib.metadata directly in python3.8+
2019-10-17 11:36:01 -07:00
Anthony Sottile
f8f81db36d
Use importlib.metadata directly in python3.8+
2019-10-17 10:52:44 -07:00
Anthony Sottile
b3582dfd31
Merge pull request #1169 from pre-commit/color
...
show color in hook outputs when attached to a tty
2019-10-14 14:12:48 -07:00
Anthony Sottile
7c3404ef1f
show color in hook outputs when attached to a tty
2019-10-12 23:17:36 -07:00
Anthony Sottile
c8620f35e1
Merge pull request #1170 from pre-commit/fail_fix
...
Fix fail type signature
2019-10-12 21:53:37 -07:00
Anthony Sottile
38766816ac
Fix fail type signature
2019-10-12 21:29:15 -07:00
Anthony Sottile
2048fed110
Merge pull request #1168 from pre-commit/fix_stdout_stderr_splicing
...
Fix ordering of mixed stdout / stderr printing
2019-10-12 13:54:11 -07:00
Anthony Sottile
2633d38a63
Fix ordering of mixed stdout / stderr printing
2019-10-12 13:35:04 -07:00
Anthony Sottile
183c8cbb3a
Merge pull request #1161 from WillKoehrsen/not-executable-fix
...
Handle case when executable is not executable
2019-10-07 13:10:10 -07:00
WillKoehrsen
95dbf1190a
Handle case when executable is not executable
...
- Changed error message if executable is not executable
Closes:[1159](https://github.com/pre-commit/pre-commit/issues/1159 )
2019-10-07 15:47:30 -04:00
Anthony Sottile
bb108bf00e
Merge pull request #1160 from pre-commit/cmd_output_b
...
Split out cmd_output_b
2019-10-06 17:19:46 -07:00
Anthony Sottile
f612aeb22b
Split out cmd_output_b
2019-10-06 15:16:47 -07:00
Anthony Sottile
ab063977ad
Merge pull request #1153 from pre-commit/init_templatedir_hook_types
...
Fix hook_types when calling init-templatedir
2019-09-30 11:11:07 -07:00
Anthony Sottile
36609ee305
Fix hook_types when calling init-templatedir
2019-09-30 10:29:53 -07:00
Anthony Sottile
2d0927d0b3
Merge pull request #1148 from pre-commit/newline_fixup
...
Fix up some newlines in output
2019-09-24 20:55:07 +02:00
Anthony Sottile
795506a486
Fix up some newlines in output
2019-09-24 10:22:44 -07:00
Anthony Sottile
cfc4910068
Merge pull request #1142 from marqueewinq/master
...
Add version information to error logs
2019-09-24 17:54:20 +02:00
marqueewinq
cb164ef629
replaced str concat with .write_line(); replaced \t with spaces; removed trailing space in logs
2019-09-24 16:25:27 +03:00
marqueewinq
e0155fbd66
removed meta from stdout; replaced = with : ; handled sys.version newlines; stylized errorlog to md
2019-09-24 15:50:07 +03:00
marqueewinq
de63b6a850
updated import style; put the version info on top of error message; fixed tests
2019-09-24 13:34:46 +03:00
Anthony Sottile
f735f47448
Merge pull request #1145 from pre-commit/multiple_hooks_install
...
Allow --hook-type to be specified multiple times
2019-09-23 20:40:49 +02:00
Anthony Sottile
a18646deb2
Allow --hook-type to be specified multiple times
2019-09-23 11:14:36 -07:00
marqueewinq
247d45af05
fixed #1141
2019-09-20 15:05:51 +03:00
Anthony Sottile
96c35185f0
Merge pull request #1124 from pre-commit/all-repos_autofix_rm-reqs
...
Remove redundant flake8 dependency
2019-08-28 11:58:30 -07:00
Anthony Sottile
d3474dfff3
make the tests not depend on flake8 being installed
2019-08-28 11:41:03 -07:00
Anthony Sottile
c1580be7d3
Remove redundant flake8 dependency
...
Committed via https://github.com/asottile/all-repos
2019-08-27 21:28:06 -07:00
Anthony Sottile
0245a67831
v1.18.3
2019-08-27 10:38:53 -07:00
Anthony Sottile
8537e7c94e
Simplify if statement slightly
2019-08-27 10:35:40 -07:00
Anthony Sottile
47fb42cf1f
Merge pull request #1122 from henryykt/bugfix/windows_node_path
...
Fix NODE_PATH on win32
2019-08-27 10:33:18 -07:00
Henry Tang
b0c7ae4d29
Fix NODE_PATH on win32
2019-08-28 00:03:04 +08:00
Anthony Sottile
7f900395ec
v1.18.2
2019-08-15 10:07:24 -07:00
Anthony Sottile
7c376cb4d6
Merge pull request #1117 from scop/py3-default-version
...
Stabilize python default version lookup
2019-08-15 09:51:40 -07:00
Ville Skyttä
f84b19748d
Patch the correct find_executable
2019-08-15 19:28:07 +03:00
Ville Skyttä
562276098c
Address more @asottile's review comments
2019-08-15 18:54:08 +03:00
Ville Skyttä
38da98d2d6
Address @asottile's review comments
2019-08-15 18:43:31 +03:00
Ville Skyttä
c377830898
Mock find_executable for find_by_sys_executable test
2019-08-15 18:34:25 +03:00
Anthony Sottile
66a78ce819
Merge pull request #1116 from scop/spelling
...
Spelling fixes
2019-08-15 06:11:44 -07:00
Ville Skyttä
fa2e154b41
Stabilize python default version lookup
...
For example, for sys.executable:
/usr/bin/python3 -> python3.7
...the default lookup may return either python3 or python3.7. Make the
order deterministic by iterating over tuple, not set, of candidates.
2019-08-15 10:06:31 +03:00
Ville Skyttä
dd46fde384
Spelling fixes
2019-08-15 08:26:01 +03:00
Anthony Sottile
7c69730ad2
v1.18.1
2019-08-11 14:07:20 -07:00
Anthony Sottile
9297befe5c
Merge pull request #1113 from zimbatm/rust-language-fix
...
rust language: use the new cargo install command
2019-08-11 14:05:11 -07:00
zimbatm
cbbfcd20b4
rust language: use the new cargo install command
...
cargo install now requires an additional `--path <TARGET>` argument.
2019-08-11 13:36:13 -07:00
Anthony Sottile
07f66417dd
v1.18.0
2019-08-03 15:21:26 -07:00
Anthony Sottile
e6d63d70be
Merge pull request #1107 from pre-commit/init_templatedir_fixes
...
Several fixes for init-templatedir
2019-08-03 13:55:01 -07:00
Anthony Sottile
f48c0abcbe
Use expanduser in init-templatedir like git does
2019-08-03 13:30:13 -07:00
Anthony Sottile
cab8036db3
Don't treat unset init.templateDir as the current directory
2019-08-03 11:55:53 -07:00
Anthony Sottile
da80cc6479
Allow init-templatedir to be called outside of git
2019-08-03 11:41:54 -07:00
Anthony Sottile
7f1e9c1907
Merge pull request #1103 from pre-commit/dumb_term
...
Disable color if TERM=dumb is detected
2019-07-27 19:49:20 -07:00
Anthony Sottile
120cae9d41
Disable color if TERM=dumb is detected
2019-07-27 13:46:30 -07:00
Anthony Sottile
376d283ba3
Merge pull request #1094 from geieredgar/windows-docker-fix
...
Fix docker based hooks failing on Windows
2019-07-25 06:19:21 -07:00
Edgar Geier
d4a9ff4d1f
Simplify docker user fallback implementation and test
2019-07-25 11:22:59 +02:00
Anthony Sottile
332b98bd86
Merge pull request #1098 from geieredgar/switch-to-pre-commit-color-env
...
Switch from NO_COLOR to PRE_COMMIT_COLOR environment variable
2019-07-23 09:07:54 -07:00
Edgar Geier
aaa249bda9
Overwrite default value of --color argument with PRE_COMMIT_COLOR env var
2019-07-23 17:42:28 +02:00
Edgar Geier
c75d8939f8
Revert "Don't use color if NO_COLOR environment variable is set"
...
This reverts commit 1bf9ff7493 .
2019-07-23 17:40:08 +02:00
Edgar Geier
df919e6ab5
Revert "Require NO_COLOR environment variable to be non-empty to disable colors"
...
This reverts commit 01d3a72a0e .
2019-07-23 17:39:34 +02:00
Edgar Geier
e82c1e7259
Revert "Add tests for NO_COLOR support"
...
This reverts commit 8520455042 .
2019-07-23 17:38:50 +02:00
Edgar Geier
69b2cb5ea6
Revert "Simplify NO_COLOR check"
...
This reverts commit e9ff1be96c .
2019-07-23 17:38:29 +02:00
Edgar Geier
07797f3fff
Revert "Change test to remove missed branch"
...
This reverts commit 84dcb91119 .
2019-07-23 17:37:44 +02:00
Edgar Geier
a21a4f46c7
Fix missing create=True attribute in docker tests
2019-07-23 15:35:19 +02:00
Edgar Geier
b43b6a61ab
Add docker uid and gid fallback tests
2019-07-23 15:14:06 +02:00
Edgar Geier
b7ce5db782
Use fallback uid and gid if os.getuid() and os.getgid() are unavailable
2019-07-23 12:38:09 +02:00
Anthony Sottile
1874cea63e
Merge pull request #1092 from geieredgar/respect-no-color-environment-variable
...
Don't use color if NO_COLOR environment variable is set
2019-07-22 15:06:23 -07:00
Edgar Geier
84dcb91119
Change test to remove missed branch
2019-07-22 20:23:59 +02:00
Edgar Geier
e9ff1be96c
Simplify NO_COLOR check
2019-07-22 20:09:32 +02:00
Edgar Geier
8520455042
Add tests for NO_COLOR support
2019-07-22 20:07:16 +02:00
Edgar Geier
01d3a72a0e
Require NO_COLOR environment variable to be non-empty to disable colors
2019-07-22 19:35:39 +02:00
Edgar Geier
1bf9ff7493
Don't use color if NO_COLOR environment variable is set
2019-07-22 19:18:36 +02:00
Anthony Sottile
1bd9bfefeb
Merge pull request #1090 from pre-commit/template_dir
...
Implement `pre-commit init-templatedir`
2019-07-20 20:56:02 -07:00
Anthony Sottile
9a52eefc99
Implement pre-commit init-templatedir
2019-07-20 20:33:42 -07:00
Anthony Sottile
83fbbaea9a
Merge pull request #1089 from pre-commit/autoupdate_non_master_default_branch
...
Make autoupdate work for non-master default branches
2019-07-20 17:41:19 -07:00
Anthony Sottile
3def940574
reorder pre-commit sub commands
2019-07-20 16:28:35 -07:00
Anthony Sottile
8be0f857e8
Make autoupdate work for non-master default branches
2019-07-20 15:30:30 -07:00
Anthony Sottile
7769915a0b
Merge pull request #1088 from pre-commit/autoupdate_shallow_fix
...
Fix autoupdate to always use non-shallow clone
2019-07-20 15:21:27 -07:00
Anthony Sottile
73250ff4e3
Fix autoupdate to always use non-shallow clone
2019-07-20 14:59:49 -07:00
Anthony Sottile
95afd642f5
Merge pull request #1079 from madkinsz/run-stage-prompt-1078
...
Added hook-stage print to output for missing hook id
2019-07-09 12:10:43 -07:00
Michael Adkins
02d95c033c
Fixed code style
2019-07-09 13:48:06 -05:00
Michael Adkins
c148845a98
Added hook-stage print to output for missing hook id
2019-07-09 13:06:18 -05:00
Anthony Sottile
927b2ab3f8
Merge pull request #1077 from pre-commit/shallow_fetch_fetch_head
...
Fix shallow fetch by checking out FETCH_HEAD
2019-07-08 08:22:21 -07:00
Anthony Sottile
01653b8077
Fix shallow fetch by checking out FETCH_HEAD
2019-07-07 22:10:32 -07:00
Anthony Sottile
24d4bc82d7
Merge pull request #1075 from pre-commit/manifest_unnecessary
...
MANIFEST.in is unnecessary with `license_file`
2019-07-07 13:01:27 -04:00
Anthony Sottile
b12e4e82aa
MANIFEST.in is unnecessary with license_file
2019-07-07 09:41:28 -07:00
Anthony Sottile
0cf2638b3b
Merge pull request #1067 from pre-commit/devenv
...
Suggest tox --devenv instead of tox -e venv
2019-06-26 07:43:06 -07:00
Anthony Sottile
f4b3add8ab
Suggest tox --devenv instead of tox -e venv
2019-06-25 22:46:24 -07:00
Anthony Sottile
702f1401d4
Merge pull request #1062 from pre-commit/sys_executable_matches
...
Use sys.executable if it matches on posix as well
2019-06-17 13:12:25 -07:00
Anthony Sottile
9bdce088c8
Use sys.executable if it matches on posix as well
2019-06-17 07:54:38 -07:00
Anthony Sottile
fdf476a5a1
Merge pull request #1056 from pre-commit/document_new_language
...
Document adding a supported language
2019-06-09 08:51:07 -07:00
Anthony Sottile
9d1342aeb6
Document adding a supported language
2019-06-09 08:42:09 -07:00
Anthony Sottile
e0c7db1021
Merge pull request #1054 from pre-commit/rust_ap_linux
...
Fixes for rust tests on azure pipelines linux
2019-06-06 09:18:40 -07:00
Anthony Sottile
90128c5a9d
Fixes for rust tests on azure pipelines linux
2019-06-06 08:50:01 -07:00
Anthony Sottile
016eda9f3c
v1.17.0
2019-06-06 08:30:11 -07:00
Anthony Sottile
a75fe69984
Merge pull request #1051 from mandarvaze/master
...
Pass color option to git diff (on failure)
2019-06-01 08:11:45 -07:00
Mandar Vaze
3d7b374bef
Pass correct value to git color based on args.color
2019-06-01 17:33:27 +05:30
Mandar Vaze
64f0178b75
Pass color option to git diff unconditionally
2019-06-01 07:40:20 +05:30
Anthony Sottile
fff3ad518c
Merge pull request #1052 from pre-commit/rust_ap
...
azure pipelines now has rust by default on windows
2019-05-31 13:35:49 -07:00
Anthony Sottile
071cc422c7
xfail default language version check for azure pipelines
2019-05-31 13:17:54 -07:00
Anthony Sottile
e08d373be3
azure pipelines now has rust by default on windows
2019-05-31 09:51:08 -07:00
Mandar Vaze
4f4767c9e0
Pass color option to git diff (on failure)
...
Fixes #1007
2019-05-31 16:42:16 +05:30
Anthony Sottile
0b6a39768a
Merge pull request #1048 from pre-commit/cfgv_2
...
fixes for cfgv>=2
2019-05-27 13:59:24 -07:00
Anthony Sottile
625750eeef
fixes for cfgv>=2
2019-05-27 13:37:49 -07:00
Anthony Sottile
099f521b7e
Merge pull request #1045 from pre-commit/fix_test_pre_commit_on_path
...
Fix test_environment_not_sourced when pre-commit is installed globally
2019-05-26 19:11:57 -07:00
Anthony Sottile
e868add5a3
Fix test_environment_not_sourced when pre-commit is installed globally
2019-05-26 17:03:15 -07:00
Anthony Sottile
28664d6bf1
Merge pull request #1043 from pre-commit/rmtree_readonly_dirs
...
Fix rmtree for readonly directories
2019-05-22 12:32:54 -07:00
Anthony Sottile
da44d4267e
Fix rmtree for readonly directories
2019-05-22 11:04:35 -07:00
Anthony Sottile
77947f212e
Merge pull request #1033 from yoavcaspi/fix_tox_venv
...
restore testenv:venv section
2019-05-13 15:19:15 -07:00
Yoav Caspi
bb78de09d1
move testenv:venv section to be in lexicographic order
2019-05-14 00:08:54 +03:00
Anthony Sottile
bd212393ae
Merge pull request #1027 from pre-commit/keyboard_interrupt_fix
...
Fix handling of SIGINT in hook script
2019-05-13 13:17:48 -07:00
Yoav Caspi
471fe7d58f
restore testenv:venv section. to be able to set the dev environment as described in the CONTRIBUTING.md
2019-05-13 23:14:41 +03:00
Anthony Sottile
fb15fa65f2
Fix handling of SIGINT in hook script
2019-05-13 12:33:51 -07:00
Anthony Sottile
e10b81858a
Merge pull request #1028 from yoavcaspi/warn_unknown_keys
...
Add warning to additional keys in config
2019-05-12 15:04:41 -07:00
Yoav Caspi
7a998a091e
improve function name
2019-05-12 23:29:42 +03:00
Yoav Caspi
ba7760b705
Add a test to validate that cfgv.WarnAdditionalKeys working as expected in the relevant config schemas
2019-05-12 15:09:15 +03:00
Anthony Sottile
a889f0bfd5
Merge pull request #1030 from pre-commit/improved_interrupt_output
...
Improve output when interrupted (^C)
2019-05-11 20:18:06 -07:00
Yoav Caspi
217d31ec1c
Add a check and test to the real top level and improve the warning message
2019-05-11 22:57:52 +03:00
Anthony Sottile
f21316ebe8
Improve output when interrupted (^C)
2019-05-11 12:19:00 -07:00
Anthony Sottile
1c7ac67fba
Merge pull request #1029 from yoavcaspi/typo_fix
...
typo fix
2019-05-11 12:09:29 -07:00
Yoav Caspi
59c282b184
typo fix
2019-05-11 21:47:26 +03:00
Yoav Caspi
fd9d9d276b
Add warning to additional keys in config
2019-05-11 20:59:34 +03:00
Anthony Sottile
b3bfecde39
Fix markdown typo
2019-05-08 08:27:53 -07:00
Anthony Sottile
168ede2be0
v1.16.1
2019-05-08 08:26:15 -07:00
Anthony Sottile
c2980217a8
Merge pull request #1022 from pre-commit/1021
...
Don't attempt to decode the healthy response
2019-05-07 16:23:14 -07:00
Anthony Sottile
d74ee6d743
Don't attempt to decode the healthy response
2019-05-07 09:38:17 -07:00
Anthony Sottile
8df6b22f4f
Merge pull request #1018 from pre-commit/dates_in_changelog
...
Add dates to changelog entries
2019-05-04 14:27:39 -04:00
Anthony Sottile
f72a82359c
Add dates to changelog entries
...
Automated with this script:
```bash
git tag -l | sed 's/^v//g' |
xargs --replace bash -c 'sed -r -i "s/^({})$/\1 - $(git show --format=%ad --date=short --no-patch v{})/g" CHANGELOG.md'
sed -r -i 's/^(=+)$/\1=============/g' CHANGELOG.md
# - 2019-01-01
```
Thanks @hynek for the suggestion
2019-05-04 08:43:11 -07:00
Anthony Sottile
c65dd3ea3a
Manually fix up 0.1 tag log
2019-05-04 08:40:51 -07:00
Anthony Sottile
75651dc8b0
v1.16.0
2019-05-04 08:26:42 -07:00
Anthony Sottile
72f98d26e6
Merge pull request #1015 from Myrheimb/patch-1
...
Could this fix #1013 ?
2019-04-29 13:44:52 -07:00
Bjørnar Myrheim
00e048995c
Yet another try to fix #1013
...
One again changed the string and file referenced to handle single quotes properly inside pcre greps.
2019-04-29 21:45:56 +02:00
Bjørnar Myrheim
5977b1125b
Another try to fix #1013
...
Properly changed the string and file referenced to handle single quotes properly inside pcre greps.
2019-04-29 21:33:58 +02:00
Bjørnar Myrheim
5590fc7a53
New try to fix #1013
...
Changed the string and file referenced to handle single quotes properly inside pcre greps.
2019-04-29 21:20:22 +02:00
Bjørnar Myrheim
e9e665d042
Could this fix #1013 ?
...
I'm still a beginner, but a single single quote looked a bit off to me.
Could adding another single quote after pre fix this issue?
2019-04-29 20:22:18 +02:00
Anthony Sottile
c97dfb2281
Merge pull request #1014 from mxr/patch-1
...
Whitespace nit
2019-04-28 22:53:24 -07:00
Max R
64a65351b9
Whitespace nit
2019-04-29 01:40:12 -04:00
Anthony Sottile
ee80f6218a
Fix badge url
2019-04-28 22:08:21 -07:00
Anthony Sottile
fee8ddd54b
Merge pull request #1012 from pre-commit/azure_pipelines
...
azure pipelines [skip travis] [skip appveyor]
2019-04-28 22:00:31 -07:00
Anthony Sottile
9c6edab726
azure pipelines [skip travis] [skip appveyor]
2019-04-28 21:39:06 -07:00
Anthony Sottile
09e64e8ff6
Merge pull request #1011 from pre-commit/multi_install_windows
...
Fix double legacy install on windows
2019-04-27 16:01:32 -07:00
Anthony Sottile
af2c6de9ae
Fix double legacy install on windows
2019-04-27 15:10:01 -07:00
Anthony Sottile
b8300268bf
Merge pull request #1004 from marcjay/add_prepare-commit-msg_stage
...
Add support for prepare-commit-msg hooks
2019-04-21 15:56:16 -07:00
Anthony Sottile
81a94b8048
Merge pull request #1005 from asottile/gocache_appveyor
...
passenv %LocalAppData% so go functions on windows
2019-04-21 15:54:32 -07:00
Anthony Sottile
efeef97f5e
passenv %LocalAppData% so go functions on windows
2019-04-21 15:32:27 -07:00
Marc Jay
82969e4ba3
Use set rather than list for commit message related stages, remove
...
default file open modes, tidy up bash call for failing hook test
2019-04-21 21:58:01 +01:00
Marc Jay
64467f6ab9
Fix broken test_manifest_hooks test
2019-04-21 21:54:23 +01:00
Marc Jay
e60f541559
Adds support for prepare-commit-msg hooks
...
Adds a prepare-commit-msg hook stage which allows for hooks which add
dynamic suggested/placeholder text to commit messages that an author can
use as a starting point for writing a commit message
2019-04-21 21:07:13 +01:00
Anthony Sottile
809b7482df
v1.15.2
2019-04-16 11:33:16 -07:00
Anthony Sottile
2d4ea61c93
Merge pull request #998 from pre-commit/full_clone_non_mainline_tag
...
Fix full clone + non-mainline tag
2019-04-16 11:30:57 -07:00
Anthony Sottile
eab24f3e48
Fix full clone + non-mainline tag
2019-04-16 10:30:05 -07:00
Anthony Sottile
b33f2c40d8
v1.15.1
2019-04-01 09:44:09 -07:00
Anthony Sottile
6302dec938
Merge pull request #987 from asottile/no_sc_arg_max
...
Bound maxsize by 4096 when SC_ARG_MAX is not present
2019-04-01 09:42:44 -07:00
Anthony Sottile
681d78b6cf
Bound maxsize by 4096 when SC_ARG_MAX is not present
2019-04-01 09:25:20 -07:00
Anthony Sottile
5169f455c9
v1.15.0
2019-03-30 16:13:03 -07:00
Anthony Sottile
a009dd6caf
Merge pull request #982 from bnorquist/master
...
add helpful CI message
2019-03-30 15:53:28 -07:00
Anthony Sottile
668e6415c0
Adjust messaging slightly
2019-03-30 14:05:24 -07:00
Ben Norquist
71a740d65d
add helpful message and test
2019-03-30 14:00:03 -07:00
Anthony Sottile
03ac3b0840
Merge pull request #981 from tristan0x/fix/infinite-process-recursion
...
Do not run legacy script again when this is the one being executed
2019-03-30 13:54:42 -07:00
Anthony Sottile
bbc3130af2
Produce slightly more helpful message
2019-03-30 13:40:37 -07:00
Anthony Sottile
2fbe359846
Merge pull request #986 from tim77/master
...
Specify env python explicitly.
2019-03-30 11:35:50 -07:00
Artem Polishchuk
9f0cfed600
Specify env python explicitly.
2019-03-30 19:56:52 +02:00
Tristan Carel
ec72cb7260
assert that the pre-commit script being executed is not the legacy
2019-03-29 13:55:04 +01:00
Tristan Carel
cd61269389
Do not run legacy script again when this is the one being executed
2019-03-27 06:24:47 +01:00
Anthony Sottile
da00fa98f9
Merge pull request #978 from pre-commit/all-repos_autofix_pre-commit-autoupdate
...
Run pre-commit autoupdate
2019-03-21 22:50:41 -07:00
Anthony Sottile
dc28922ccb
Run pre-commit autoupdate
...
Committed via https://github.com/asottile/all-repos
2019-03-21 21:09:33 -07:00
Anthony Sottile
06d01c8c9d
Merge pull request #977 from asottile/minimum_pre_commit_version
...
Add top level minimum_pre_commit_version
2019-03-21 18:51:19 -07:00
Anthony Sottile
c78b6967cd
Add top level minimum_pre_commit_version
2019-03-21 18:29:17 -07:00
Anthony Sottile
264161c182
Merge pull request #973 from DanielChabrowski/try-repo-fix
...
Fix try-repo for staged untracked changes
2019-03-19 13:09:28 -07:00
DanielChabrowski
c7b369a7be
Add test for xargs propagating kwargs to cmd_output
2019-03-19 20:36:21 +01:00
DanielChabrowski
7023caba94
Execute with xargs in try_repo
2019-03-19 20:35:52 +01:00
DanielChabrowski
24a2c3d8db
Add support for passing cwd and env to xargs
2019-03-19 20:35:21 +01:00
Anthony Sottile
a18b683d12
Add review suggestion
...
Co-Authored-By: DanielChabrowski <dantezstudio@gmail.com>
2019-03-18 02:31:47 +01:00
DanielChabrowski
888787fb2d
Fix try-repo for staged untracked changes
2019-03-18 02:04:50 +01:00
Anthony Sottile
71c238d4ec
Merge pull request #972 from javabrett/test-no-git-env
...
Added test for git.no_git_env()
2019-03-17 17:48:27 -07:00
Brett Randall
7d7c9c0fde
Additional fixes prompted by double-quote-string-fixer.
...
Signed-off-by: Brett Randall <javabrett@gmail.com>
2019-03-18 10:24:46 +11:00
Brett Randall
f5af95cc9d
Added test for git.no_git_env().
...
Signed-off-by: Brett Randall <javabrett@gmail.com>
2019-03-18 10:23:54 +11:00
Brett Randall
f673f8bb55
Added double-quote-string-fixer pre-commit hook.
...
Signed-off-by: Brett Randall <javabrett@gmail.com>
2019-03-18 09:47:31 +11:00
Anthony Sottile
185a288645
Merge pull request #958 from DanielChabrowski/shallow-clone
...
Allow shallow cloning
2019-03-15 20:45:51 -07:00
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
Anthony Sottile
3e76af4912
Merge pull request #966 from pre-commit/command_length_better
...
Compute the maximum command length more accurately
2019-03-11 10:19:11 -07:00
Anthony Sottile
545bc0d21c
Merge pull request #967 from asottile/improve_testsuite_speed_windows
...
Improve testsuite speed on windows by ~23 seconds
2019-03-10 12:48:48 -07:00
Anthony Sottile
7a763a9851
Improve testsuite speed on windows by ~23 seconds
2019-03-10 11:27:25 -07:00
Anthony Sottile
985f09ff88
Compute the maximum command length more accurately
2019-03-10 11:14:22 -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
Anthony Sottile
cac1a3f34e
Merge pull request #959 from asottile/non_cd
...
Don't require git for clean, gc, sample-config
2019-03-04 08:46:54 -08:00
Anthony Sottile
917586a0e0
Don't require git for clean, gc, sample-config
2019-03-02 19:01:05 -08:00
DanielChabrowski
e74253d2de
Allow shallow cloning
2019-03-03 01:35:53 +01:00
Anthony Sottile
518a72d7e7
Merge pull request #956 from pre-commit/all-repos_autofix_setup-py-upgrade
...
Migrate setup.py to setup.cfg declarative metadata
2019-02-27 22:55:37 -08:00
Anthony Sottile
f9cfaef5aa
Migrate setup.py to setup.cfg declarative metadata
...
Committed via https://github.com/asottile/all-repos
2019-02-27 22:12:03 -08:00
Anthony Sottile
aa4bc9d241
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
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
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
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
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
Anthony Sottile
7448e588ff
Merge pull request #898 from pre-commit/identity
...
Add identity meta hook
2018-12-29 13:34:30 -08:00
Anthony Sottile
a49a34ef3d
Add identity meta hook
2018-12-29 13:13:31 -08:00
Anthony Sottile
d2b92e8170
Merge pull request #894 from s0undt3ch/hotfix/no-gpg-sign
...
Don't fail if GPG signing is configured by default. All references.
2018-12-28 16:20:51 -08:00
Anthony Sottile
160a11a0a7
Improve git_commit helper
2018-12-28 15:32:25 -08:00
Pedro Algarvio
28c97a95cd
Don't fail if GPG signing is configured by default. All references.
2018-12-28 20:11:37 +00:00
Anthony Sottile
7afb2944b2
Merge pull request #896 from pre-commit/cleanup
...
misc cleanup
2018-12-27 19:26:16 -08:00
Anthony Sottile
d46bbc486f
Use in_git_dir in more places
2018-12-27 18:25:54 -08:00
Anthony Sottile
2af0b0b4f3
better no-cover for windows
2018-12-27 18:25:52 -08:00
Anthony Sottile
8c550d0157
Merge pull request #886 from s0undt3ch/features/repo-alias
...
Allow aliasing a hook and calling it by it's alias
2018-12-27 12:17:29 -08:00
Anthony Sottile
6d40b2a38b
Simplify the skip test to only test skipping
2018-12-27 09:24:41 -08:00
Pedro Algarvio
8ffd1f69d7
Address review comments
2018-12-27 17:18:11 +00:00
Pedro Algarvio
79c8b1fceb
Allow hook alias to be used in SKIP. Includes test.
2018-12-27 12:03:27 +00:00
Pedro Algarvio
5840f880a9
Address review comments and test failures
2018-12-27 12:03:27 +00:00
Pedro Algarvio
afbc57f2ad
Go back to optional. Requires less changes to existing code.
2018-12-27 12:03:27 +00:00
Pedro Algarvio
b096c0b8f2
Allow aliasing a hook and calling it by it's alias
2018-12-27 12:03:27 +00:00
Anthony Sottile
c5c0a0699b
Merge pull request #895 from pre-commit/rip_runner
...
Remove stateful Runner
2018-12-26 23:11:38 -08:00
Anthony Sottile
2b8291d18f
add a no-cover for py3 [ci skip]
2018-12-26 22:45:13 -08:00
Anthony Sottile
fe409f1a43
Remove stateful Runner
2018-12-26 22:33:21 -08:00
Anthony Sottile
1d40cc2104
Merge pull request #893 from pre-commit/shebang
...
Pick a better python shebang for hook executable
2018-12-25 21:05:21 -08:00
Anthony Sottile
de942894ff
Pick a better python shebang for hook executable
2018-12-25 12:11:02 -08:00
Anthony Sottile
748c2ad273
v1.13.0
2018-12-20 12:05:22 -08:00
Anthony Sottile
45a34d6b75
Merge pull request #888 from pre-commit/887_xfail_windows_node_again
...
xfail windows node until #887 is resolved
2018-12-19 17:04:21 -08:00
Anthony Sottile
91782bb6c8
xfail windows node until #887 is resolved
2018-12-19 17:03:52 -08:00
Anthony Sottile
d0c62aae7a
Merge pull request #889 from pre-commit/no_document
...
Switch from deprecated docs-off args to --no-document
2018-12-19 14:40:22 -08:00
Anthony Sottile
435d9945a3
Switch from deprecated docs-off args to --no-document
2018-12-19 14:22:09 -08:00
Anthony Sottile
c292ba892b
Merge pull request #885 from s0undt3ch/hotfix/no-gpg-sign
...
Don't fail if GPG signing is configured by default
2018-12-14 16:25:50 -05:00
Anthony Sottile
15b1f118b5
Update fixtures.py
2018-12-14 13:14:13 -08:00
Pedro Algarvio
afeac2f099
Don't fail if GPG signing is configured by default
2018-12-14 11:45:01 +00:00
Anthony Sottile
51659ee606
Merge pull request #874 from chriskuehl/shuffle-args
...
Shuffle arguments before running hooks
2018-11-19 23:00:36 -08:00
Chris Kuehl
45e3dab00d
Shuffle arguments before running hooks
2018-11-19 17:53:19 -08:00
Anthony Sottile
6b6ebe7e30
Merge pull request #870 from pre-commit/bump_sample
...
Upgrade the sample config
2018-11-15 16:19:22 -08:00
Anthony Sottile
e15d7cde86
Upgrade the sample config
2018-11-15 14:17:10 -08:00
Anthony Sottile
dc84f21dd4
Merge pull request #857 from runz0rd/master
...
Reraises InvalidManifestError as RepositoryCannotBeUpdatedError
2018-11-14 17:29:43 -08:00
Anthony Sottile
aaa3976a29
Use text_type instead of str()
2018-11-13 17:23:32 -08:00
Milos Pejanovic
e339de22d7
Added requested changes
2018-11-14 01:59:18 +01:00
Milos Pejanovic
bf8c8521cd
Added a test and small change for error output
2018-11-14 00:43:04 +01:00
Anthony Sottile
76e0f11916
Merge pull request #851 from chriskuehl/concurrent-execution
...
Implement concurrent execution of individual hooks
2018-11-01 18:46:13 -07:00
Anthony Sottile
6bac405d40
Minor cleanups
2018-11-01 18:05:36 -07:00
Milos Pejanovic
1c97d3f5fd
Added a try except block which reraises InvalidManifestError as RepositoryCannotBeUpdatedError
2018-10-31 17:39:47 +01:00
Chris Kuehl
9125439c3a
Force serial hook runs during tests
2018-10-24 16:33:06 -07:00
Chris Kuehl
aa50a8cde0
Switch to using concurrent.futures
2018-10-24 16:33:06 -07:00
Chris Kuehl
231f6013bb
Allow more time on the concurrency test
...
Spawning processes is apparently really slow on Windows, and the test is
occasionally taking slightly more than a second on AppVeyor. I think we
can allow up to the full 2.5 seconds without losing the valuable bits of
the test.
2018-10-24 16:33:06 -07:00
Chris Kuehl
b6926e8e2e
Attempt to partition files to use all possible cores
2018-10-24 16:33:06 -07:00
Chris Kuehl
ec0ed8aef5
Handle CPU detection errors and running on Travis
2018-10-24 16:16:13 -07:00
Chris Kuehl
ba5e27e4ec
Implement concurrent execution of individual hooks
2018-10-24 16:16:10 -07:00
Anthony Sottile
1f1cd2bc39
Merge pull request #839 from georgeyk/refactor-xargs-partition
...
Update xargs.partition with platform information
2018-10-23 22:55:30 -07:00
Anthony Sottile
ead906aed0
Compute win32 python2 length according to encoded size
2018-10-23 22:02:48 -07:00
Anthony Sottile
eecf3472ff
v1.12.0
2018-10-23 10:55:09 -07:00
Anthony Sottile
0c9a53bf1b
Correct resources declaration
2018-10-23 10:50:35 -07:00
Anthony Sottile
47e4f39436
Merge pull request #852 from pre-commit/install_only_once
...
Install multi-hook repositories only once
2018-10-23 10:47:22 -07:00
Anthony Sottile
6cde287a1e
Install multi-hook repositories only once
2018-10-23 10:28:37 -07:00
Anthony Sottile
fcdd638134
Merge pull request #847 from pre-commit/improve_coverage
...
Improve coverage of check_hooks_apply
2018-10-14 16:28:32 -07:00
Anthony Sottile
f19bf57afc
Merge pull request #846 from pre-commit/performance
...
Improve performance by factoring out pkg_resources
2018-10-14 15:32:18 -07:00
Anthony Sottile
8e8b962266
Improve coverage of check_hooks_apply
2018-10-14 15:00:57 -07:00
Anthony Sottile
62493d1115
Exclude coverage in the template file
2018-10-14 14:37:36 -07:00
Anthony Sottile
9f60561d6f
Replace resources with importlib_resources
2018-10-14 14:37:35 -07:00
Anthony Sottile
ebe5132576
Replace pkg_resources.get_distribution with importlib-metadata
2018-10-14 12:24:59 -07:00
Anthony Sottile
14df93ef3e
Merge pull request #845 from pre-commit/all-repos_autofix_pre-commit-autopep8-migrate
...
Migrate from autopep8-wrapper to mirrors-autopep8
2018-10-12 21:49:22 -07:00
Anthony Sottile
3dbb61d9af
Migrate from autopep8-wrapper to mirrors-autopep8
...
Committed via https://github.com/asottile/all-repos
2018-10-12 20:08:47 -07:00
Anthony Sottile
9c37473256
v1.11.2
2018-10-10 20:43:57 -07:00
Anthony Sottile
9bcfe176d4
Merge pull request #844 from pre-commit/pre_push_ancestor_identification
...
fix pushing to new branch not identifying all commits
2018-10-10 20:41:46 -07:00
Anthony Sottile
3181b461aa
fix pushing to new branch not identifying all commits
2018-10-10 20:08:16 -07:00
George Y. Kussumoto
3d573d8736
Fix xargs.partion: win32 test
2018-10-09 23:32:46 -03:00
George Y. Kussumoto
c9e297ddb6
Fix xargs.partition: win32 new string length computation
2018-10-09 22:54:41 -03:00
George Y. Kussumoto
2560280d21
Fix xargs.partition tests: explicity set unicode chars
2018-10-08 19:42:59 -03:00
George Y. Kussumoto
333ea75e45
Refactor xargs.partition: _command_length usage
2018-10-06 20:04:17 -03:00
George Y. Kussumoto
bb6b1c33ae
Remove pytest-mock
2018-10-06 19:57:30 -03:00
George Y. Kussumoto
2ad69e12ce
Fix xargs.partition: use sys.getfilesystemencoding
...
The previous `sys.getdefaultencoding` almost always fallsback to
`ascii` while `sys.getfilesystemencoding` is utf-8 once in utf-8 mode.
2018-10-05 16:39:49 -03:00
George Y. Kussumoto
df5d171cd7
Fix xargs.partition tests in python2.7 (pytest-mock)
2018-10-05 14:33:32 -03:00
George Y. Kussumoto
fa4c03da65
Update xargs.partition with platform information
...
Change how xargs.partition computes the command length (including
arguments) depending on the plataform.
More specifically, 'win32' uses the amount of characters while posix
system uses the byte count.
2018-10-05 11:54:31 -03:00
Anthony Sottile
c0b1f2ff25
Merge pull request #837 from georgeyk/check-useless-excludes-type-filter
...
Fix `check-useless-exclude` to consider types filter
2018-10-02 11:43:01 -07:00
George Y. Kussumoto
1b496c5fc3
Fix check-useless-exclude to consider types filter
2018-10-02 12:17:46 -03:00
Anthony Sottile
08319101f4
v1.11.1
2018-09-22 12:02:33 -07:00
Anthony Sottile
3e11c2d05d
Merge pull request #832 from pre-commit/rev_parse_error_mode
...
Fix rev-parse for older git versions
2018-09-22 11:59:56 -07:00
Anthony Sottile
18b6f4b519
Fix rev-parse for older git versions
2018-09-22 11:12:27 -07:00
Anthony Sottile
4b0a22a8ba
v1.11.0
2018-09-02 19:57:09 -07:00
Anthony Sottile
a2bd0097c5
Merge pull request #821 from pre-commit/allow_language_fail_check_useless_excludes
...
Exempt `language: fail` hooks from check-hooks-apply
2018-09-02 19:49:01 -07:00
Anthony Sottile
ce25b652b9
Exempt language: fail hooks from check-hooks-apply
2018-09-02 18:54:34 -07:00
Anthony Sottile
21c2c9df33
No need for OrderedDict
2018-09-02 18:51:55 -07:00
Anthony Sottile
9d48766c02
git mv tests/meta_hooks/{,check_}useless_excludes_test.py
2018-09-02 18:39:11 -07:00
Anthony Sottile
cd116977cc
Merge pull request #819 from jeffreyrack/fix-windows-reporting
...
Don't print bogus characters on windows terminals that don't support colors
2018-08-30 20:10:02 -07:00
Jeffrey Rackauckas
710eef317a
Fixing tests to account for the new terminal_supports_color variable
2018-08-30 19:39:37 -07:00
Jeffrey Rackauckas
3d777bb386
Move logic to handle terminal not supporting colors to use_color
2018-08-30 19:15:46 -07:00
Jeffrey Rackauckas
a970d3b69b
Removing useless pass statement.
2018-08-30 18:45:29 -07:00
Jeffrey Rackauckas
1bd6fce7dc
Don't print bogus characters on windows terminals that don't support colors.
2018-08-29 18:54:55 -07:00
Anthony Sottile
f042e302d8
Merge pull request #815 from pre-commit/update_config
...
Update config
2018-08-16 07:44:27 -07:00
Anthony Sottile
72d10903d5
Update config
2018-08-15 17:55:06 -07:00
Anthony Sottile
a5ccc89748
Merge pull request #812 from pre-commit/language_fail
...
Add language: fail
2018-08-11 08:13:35 -07:00
Anthony Sottile
a6e2e1d4bb
Add language: fail
2018-08-10 18:11:28 -07:00
Anthony Sottile
cf691e85c8
that's what I get for not waiting for CI
2018-08-10 12:39:40 -07:00
Anthony Sottile
67bc05eb35
Merge pull request #811 from BoboTiG/fix-resources-warnings
...
Fix several ResourceWarning: unclosed file
2018-08-10 12:34:05 -07:00
Anthony Sottile
174d3bf057
Minor style adjustment
2018-08-10 12:33:21 -07:00
Anthony Sottile
a8640c759d
Add # pragma: no cover for the py3-only branch
2018-08-10 11:11:50 -07:00
Mickaël Schoentgen
d68a778e3b
Fix the use of deprecated inspect.getargspec() on Python 3
2018-08-10 18:30:22 +02:00
Mickaël Schoentgen
67d6fcb0f6
Fix several ResourceWarning: unclosed file
2018-08-10 18:30:22 +02:00
Mickaël Schoentgen
abee146199
Get rid of @pytest.mark.integration
2018-08-10 18:29:30 +02:00
Anthony Sottile
ff73f6f741
v1.10.5
2018-08-06 14:03:01 -07:00
Anthony Sottile
2f0fefeb74
Merge pull request #809 from pre-commit/worktree
...
Support `pre-commit install` inside a worktree
2018-08-06 10:11:51 -07:00
Anthony Sottile
3f78487769
Support pre-commit install inside a worktree
2018-08-06 09:26:42 -07:00
Anthony Sottile
ab556f4dff
Merge pull request #805 from pre-commit/workaround_brew
...
Work around sys.executable issue using brew python on macos
2018-07-24 18:28:34 -07:00
Anthony Sottile
7e69d117c6
Work around sys.executable issue using brew python on macos
...
https://github.com/Homebrew/homebrew-core/issues/30445
2018-07-24 16:05:26 -07:00
Anthony Sottile
a3847d830c
A few changelog entries didn't get commited
2018-07-22 09:25:34 -07:00
Anthony Sottile
52f39fee12
v1.10.4
2018-07-22 08:47:43 -07:00
Anthony Sottile
f2b74e3387
Merge pull request #803 from mblayman/args-hook-only
...
Run only the specified hook even when stages exist in config.
2018-07-19 21:13:24 -07:00
Matt Layman
fd1bc21d8e
Use parens instead of different logic pattern.
2018-07-19 23:27:29 -04:00
Matt Layman
a8b298799c
Check bytes for Python 3.
2018-07-19 22:11:15 -04:00
Matt Layman
4640dc7b4a
Run only the specified hook even when stages exist in config.
...
This branches fixes the run logic so that when
`pre-commit run some_hook -a` runs when the config contains
`stages: ['commit']` for some other hook, only the hook specified as an
argument will run.
Fixes #772
2018-07-19 21:45:43 -04:00
Anthony Sottile
f2da2c435c
Merge pull request #801 from pre-commit/node_lives_again
...
Revert "Merge pull request #799 from pre-commit/temporarily_skip_npm_windows"
2018-07-18 19:07:02 -07:00
Anthony Sottile
4f419fdaab
Revert "Merge pull request #799 from pre-commit/temporarily_skip_npm_windows"
...
This reverts commit 063014ffd8 , reversing
changes made to 259ef9e530 .
2018-07-18 15:25:48 -07:00
Anthony Sottile
99972df1da
Merge pull request #797 from pre-commit/default_python_3_venv
...
Default to python3 when using python_venv under python 2
2018-07-17 20:20:54 -07:00
Anthony Sottile
550ce26e75
Merge pull request #796 from pre-commit/buffering
...
Fix buffering in --show-diff-on-failure
2018-07-17 19:37:49 -07:00
Anthony Sottile
0eaacd7c8e
Default to python3 when using python_venv under python 2
2018-07-17 18:24:29 -07:00
Anthony Sottile
c947a0935d
Fix buffering in --show-diff-on-failure
2018-07-17 18:24:16 -07:00
Anthony Sottile
df1b720054
Merge pull request #800 from pre-commit/revert_cargo_cache_appveyor
...
Revert "Merge pull request #788 from pre-commit/cache_cargo_windows"
2018-07-17 18:23:52 -07:00
Anthony Sottile
7d4db5c523
Revert "Merge pull request #788 from pre-commit/cache_cargo_windows"
...
This reverts commit e731aa835c , reversing
changes made to a4b5a9f7fb .
2018-07-17 18:23:08 -07:00
Anthony Sottile
063014ffd8
Merge pull request #799 from pre-commit/temporarily_skip_npm_windows
...
Temporarily xfail node on windows
2018-07-17 18:22:37 -07:00
Anthony Sottile
5b559dbe91
Temporarily xfail node on windows
2018-07-17 18:07:14 -07:00
Anthony Sottile
259ef9e530
Merge pull request #792 from pre-commit/py37_appveyor
...
Use python3.7 in appveyor
2018-07-10 12:31:36 -07:00
Anthony Sottile
d2734b2f1b
Use python3.7 in appveyor
2018-07-10 10:31:42 -07:00
Anthony Sottile
787dea9fbe
Merge pull request #791 from pre-commit/tox_3_1
...
tox 3.1 passes PROCESSOR_ARCHITECTURE by default
2018-07-08 16:52:33 -07:00
Anthony Sottile
49035ba445
tox 3.1 passes PROCESSOR_ARCHITECTURE by default
2018-07-08 14:53:55 -07:00
Anthony Sottile
b93ef6ffc3
Merge pull request #790 from pre-commit/no_py35
...
Don't test python3.5 now that we test python3.7
2018-07-08 10:18:38 -07:00
Anthony Sottile
707e458984
Don't test python3.5 now that we test python3.7
2018-07-08 08:19:22 -07:00
Anthony Sottile
ed1901423d
Merge pull request #789 from expobrain/python_37
...
Added Python 3.7 to Travis CI
2018-07-08 08:16:57 -07:00
Daniele Esposti
e4502b73d3
Removed PyYAML version
2018-07-06 19:38:42 +01:00
Daniele Esposti
2a46658adc
Fixed Travis setup for python 3.7
2018-07-06 08:50:52 +01:00
Daniele Esposti
cec67bb9ad
Fixed PyYAML version
2018-07-06 08:50:30 +01:00
Daniele Esposti
04933cdc46
Added Python 3.7 to Travis CI
2018-07-05 23:32:40 +01:00
Anthony Sottile
e731aa835c
Merge pull request #788 from pre-commit/cache_cargo_windows
...
Cache rust installation on windows too
2018-07-05 14:44:04 -07:00
Anthony Sottile
a4b5a9f7fb
Merge pull request #787 from pre-commit/hook_paths
...
hook paths are only computed in install_uninstall
2018-07-05 13:37:17 -07:00
Anthony Sottile
ac4aa63ff2
Cache rust installation on windows too
2018-07-05 13:14:42 -07:00
Anthony Sottile
bffa58753d
hook paths are only computed in install_uninstall
2018-07-05 12:49:01 -07:00
Anthony Sottile
d04823e8e3
Merge pull request #786 from pre-commit/no_need_for_file
...
Oops, this wrote a hash.txt file to the working dir
2018-07-04 16:10:05 -07:00
Anthony Sottile
45d299d1db
Merge pull request #785 from pre-commit/better_trace
...
Improve not found error with script paths (`./exe`)
2018-07-04 15:51:48 -07:00
Anthony Sottile
c79bc2eb8e
Oops, this wrote a hash.txt file to the working dir
2018-07-04 15:31:10 -07:00
Anthony Sottile
50fe51fc4f
Merge pull request #781 from expobrain/rust_cache
...
Travis cache
2018-07-04 15:29:52 -07:00
Daniele Esposti
b7ba4a1708
Added hash of Swift tarballs
2018-07-04 22:58:00 +01:00
Anthony Sottile
c2e4040756
Improve not found error with script paths (./exe)
2018-07-04 14:55:00 -07:00
Daniele Esposti
0f600ea0f0
Wget timestamping incompatible with -O
2018-07-04 08:36:32 +01:00
Daniele Esposti
e6b6abeb9f
Added Swift cache
2018-07-04 01:59:42 +01:00
Anthony Sottile
6853f4aa4c
Merge pull request #779 from pre-commit/yaml_load
...
Appease yaml.load linters
2018-07-03 05:51:21 -07:00
Anthony Sottile
c3e438379a
Appease yaml.load linters
...
_technically_ yaml.load is unsafe, however the contents being loaded here are
previously loaded just above using a safe loader so this is not an abitrary
code vector. Fixing it nonetheless :)
2018-07-03 05:12:36 -07:00
Daniele Esposti
eda684661b
Added Rustup cache
2018-07-03 00:26:25 +01:00
Anthony Sottile
ebb178a749
v1.10.3
2018-07-02 11:00:35 -07:00
Anthony Sottile
09114f1c16
Merge pull request #778 from pre-commit/pre_push_force_push
...
Fix force-push without fetch
2018-07-02 10:50:14 -07:00
Anthony Sottile
c294be513d
Fix force-push without fetch
2018-07-02 09:59:23 -07:00
Anthony Sottile
13c85f374b
Merge pull request #774 from pre-commit/fewer_props
...
Remove more properties from Runner
2018-07-01 21:47:39 -07:00
Anthony Sottile
b87c4fd8cc
Remove more properties from Runner
2018-07-01 19:49:15 -07:00
Anthony Sottile
8f6fe8c9e6
Merge pull request #773 from pre-commit/separate_store
...
Separate store from runner
2018-06-29 23:39:12 -07:00
Anthony Sottile
c01ffc83f8
Separate store from runner
2018-06-29 22:35:53 -07:00
Anthony Sottile
6d683a5fac
clean: separate store from runner
2018-06-29 20:08:23 -07:00
Anthony Sottile
0e430be0ce
autoupdate: separate store from runner
2018-06-29 20:04:16 -07:00
Anthony Sottile
8f2c3cfea7
Merge pull request #769 from pre-commit/fix_escape_sequences
...
Fix invalid escape sequences
2018-06-18 07:34:51 -07:00
Anthony Sottile
37c94bbe71
Fix invalid escape sequences
2018-06-17 23:51:03 -07:00
Anthony Sottile
a12feebf4b
v1.10.2
2018-06-11 13:30:11 -07:00
Anthony Sottile
31e751f4d3
Merge pull request #767 from pre-commit/consistent_ordering
...
Consistent ordering of filenames
2018-06-11 13:27:04 -07:00
Anthony Sottile
5b6a5abae9
Consistent ordering of filenames
2018-06-11 12:49:45 -07:00
Anthony Sottile
507c327b1a
Merge pull request #764 from pre-commit/tidy_top_level
...
Move testing scripts into testing
2018-06-05 19:45:36 -07:00
Anthony Sottile
f0842429b9
Move testing scripts into testing
2018-06-05 18:26:02 -07:00
Anthony Sottile
7cd2364da7
Merge pull request #762 from pre-commit/simpler_fixture
...
Simplify setup.py in arbitrary_bytes_repo
2018-06-03 22:16:56 -07:00
Anthony Sottile
37f49d8fd4
Stop crlf messages in appveyor
2018-06-03 21:33:10 -07:00
Anthony Sottile
51cf46e660
Simplify setup.py in arbitrary_bytes_repo
2018-06-03 20:56:07 -07:00
Anthony Sottile
d4a25b2ecf
Merge pull request #760 from pre-commit/long_description
...
Include README as long_description
2018-06-01 19:33:09 -07:00
Anthony Sottile
ba97b66055
Include README as long_description
2018-06-01 18:42:48 -07:00
Anthony Sottile
4e5c7e86cf
Merge pull request #759 from pre-commit/all-repos_autofix_e309-autopep8
...
E309 is no longer rewritten by autopep8
2018-06-01 14:53:39 -07:00
Anthony Sottile
3b1b9ac4cf
E309 is no longer rewritten by autopep8
...
Committed via https://github.com/asottile/all-repos
2018-06-01 13:39:40 -07:00
Anthony Sottile
cf5f8406a1
v1.10.1
2018-05-28 17:16:52 -07:00
Anthony Sottile
1b92f79941
Merge pull request #756 from pre-commit/venv_spiders
...
Invoke -mvenv with the original python if in a -mvirtualenv venv
2018-05-28 16:58:25 -07:00
Anthony Sottile
805a2921ad
Invoke -mvenv with the original python if in a -mvirtualenv venv
2018-05-28 15:14:17 -07:00
Anthony Sottile
97fb49a533
v1.10.0
2018-05-26 13:39:32 -07:00
Anthony Sottile
4e27dbddf0
Merge pull request #754 from pre-commit/all-repos_autofix_pytest
...
pytest: drop the dot!
2018-05-25 16:03:25 -07:00
Anthony Sottile
d6f8ea8fd1
pytest: drop the dot!
...
Committed via https://github.com/asottile/all-repos
2018-05-25 15:00:32 -07:00
Anthony Sottile
065504d528
Merge pull request #751 from chriskuehl/rust
...
Add Rust support
2018-05-25 10:51:52 -07:00
Chris Kuehl
5ac2ba0f7b
Make local hooks work
2018-05-24 19:42:58 -07:00
Anthony Sottile
c3d1f840c0
Merge pull request #753 from pre-commit/all-repos_autofix_rm-makefile
...
Remove (unused) Makefile
2018-05-23 18:20:31 -07:00
Anthony Sottile
f57958a9d0
Remove (unused) Makefile
...
Committed via https://github.com/asottile/all-repos
2018-05-23 17:36:23 -07:00
Chris Kuehl
23fe0be286
Add Rust to CI
2018-05-22 21:52:34 -07:00
Chris Kuehl
b4edf2ce50
Add tests for Rust
2018-05-22 21:52:34 -07:00
Chris Kuehl
2a37fcd3fe
Add support for Rust CLI dependencies
...
Also consistently build the hook using `cargo install`.
2018-05-22 21:20:13 -07:00
Chris Kuehl
7f85da1b9d
Add Rust support
2018-05-22 21:20:13 -07:00
Anthony Sottile
884e78e255
Merge pull request #752 from pre-commit/fix_pip10_test
...
Fix test since pip 10 changed output
2018-05-21 22:59:21 -07:00
Anthony Sottile
7f29fd5591
Adjust feature detection for 2.7.15
2018-05-21 22:20:37 -07:00
Anthony Sottile
f88e007f52
Fix test since pip 10 changed output
2018-05-21 21:38:36 -07:00
Anthony Sottile
3555a2b158
v1.9.0
2018-05-21 20:48:08 -07:00
Anthony Sottile
9a559cd764
Merge pull request #739 from ojii/language-python-venv
...
added python venv language
2018-05-12 12:30:37 -07:00
Anthony Sottile
b5af5a5b27
Add test for python_venv language
2018-05-12 11:37:13 -07:00
Anthony Sottile
3d49db7851
Set skip_covered = True in .coveragerc
2018-05-12 11:17:46 -07:00
Anthony Sottile
1b67b03b26
Merge pull request #750 from pre-commit/try_repo_files_norm
...
Apply relative files to try-repo also
2018-05-12 10:52:57 -07:00
Anthony Sottile
cd8179a974
Apply relative files to try-repo also
2018-05-12 10:01:14 -07:00
Anthony Sottile
e8954e2bf3
Simplify python_venv interface
2018-05-12 09:28:49 -07:00
Anthony Sottile
823c5bc8c3
Merge pull request #746 from nicoddemus/license
...
Add MANIFEST file to include license in sdist
2018-05-03 10:52:03 -04:00
Bruno Oliveira
49ff78e3ea
Add MANIFEST file to include license in sdist
2018-05-03 11:26:40 -03:00
Anthony Sottile
a9b3ff4d77
Merge pull request #741 from pre-commit/no_need_di
...
Remove unused __popen DI
2018-05-02 12:10:23 -04:00
Anthony Sottile
e55f51fb14
Remove unused __popen DI
2018-05-02 11:25:16 -04:00
Anthony Sottile
520604939a
Merge pull request #740 from pre-commit/all-repos_autofix_all-repos-sed
...
Replace legacy wheel metadata
2018-04-30 07:47:50 -07:00
Anthony Sottile
e4471e4bc8
Replace legacy wheel metadata
...
Committed via https://github.com/asottile/all-repos
2018-04-30 09:33:20 -04:00
Jonas Obrist
d6825fa0fc
added python venv language
2018-04-27 17:13:47 +09:00
Anthony Sottile
834ed0f229
v1.8.2
2018-03-17 20:40:02 -07:00
Anthony Sottile
593e1784cd
Merge pull request #729 from pre-commit/try_repo_relative_path
...
Fix regression: try-repo from relative path
2018-03-17 20:38:30 -07:00
Anthony Sottile
af93bec4fd
Fix regression: try-repo from relative path
2018-03-17 20:02:06 -07:00
Anthony Sottile
fbebd84494
v1.8.1
2018-03-12 15:34:25 -07:00
Anthony Sottile
c420741585
Merge pull request #726 from pre-commit/typo
...
Fix typo
2018-03-12 14:55:31 -07:00
Anthony Sottile
d68d023a0a
Merge pull request #724 from pre-commit/git_1_8
...
Restore git 1.8 support
2018-03-12 14:55:21 -07:00
Anthony Sottile
96e9d1b758
Restore git 1.8 support
2018-03-12 14:36:07 -07:00
Anthony Sottile
d9d5b1cef1
Fix typo
2018-03-12 14:34:53 -07:00
Anthony Sottile
179f11bdce
Merge pull request #725 from pre-commit/fix_golang
...
Fix go 1.10: no pkg dir
2018-03-12 14:34:12 -07:00
Anthony Sottile
65f001b007
Fix go 1.10: no pkg dir
2018-03-12 14:02:34 -07:00
Anthony Sottile
ae2eac5c08
v1.8.0
2018-03-11 20:19:16 -07:00
Anthony Sottile
c6b6d2340e
Merge pull request #716 from tdeo/multiline_pygrep
...
Add multiline mode to pygrep
2018-03-09 09:39:09 -08:00
Anthony Sottile
5a98765782
Merge pull request #722 from pre-commit/all-repos_autofix_pre-commit-autoupdate
...
Ran pre-commit autoupdate.
2018-03-09 08:23:40 -08:00
Thierry Deo
55ef3ce960
Address review comments
2018-03-09 09:22:34 +01:00
Anthony Sottile
67c49cd6a4
Ran pre-commit autoupdate.
...
Committed via https://github.com/asottile/all-repos
2018-03-08 22:41:50 -08:00
Thierry Deo
55c74c10d9
Rename option to and improve output
2018-03-08 09:42:32 +01:00
Anthony Sottile
04fd1de755
Merge pull request #721 from pre-commit/all-repos_autofix_all-repos-sed
...
Normalize git urls in pre-commit config
2018-03-07 18:39:42 -08:00
Anthony Sottile
d760c794a6
Normalize git urls in pre-commit config
...
Improves cache performance
Committed via https://github.com/asottile/all-repos
2018-03-07 17:43:33 -08:00
Anthony Sottile
2483cbde36
Merge pull request #720 from pre-commit/manual
...
Add a manual stage for cli-only interaction
2018-03-07 13:15:53 -08:00
Anthony Sottile
bf5792eb10
Add a manual stage for cli-only interaction
2018-03-07 12:41:25 -08:00
Anthony Sottile
4088f55ee6
Don't need a shell here
2018-03-07 12:18:54 -08:00
Thierry Deo
19075371fa
Pre-commit compliance
2018-03-07 09:35:08 +01:00
Thierry Deo
25c06e6525
Remove encoding dependence
2018-03-07 09:24:56 +01:00
Anthony Sottile
f76e7b8eb6
v1.7.0
2018-03-03 16:31:58 -08:00
Anthony Sottile
45a0f90261
Merge pull request #718 from pre-commit/core_hookspath
...
Refuse to install with core.hooksPath set
2018-03-03 15:58:53 -08:00
Anthony Sottile
f679983012
Refuse to install with core.hooksPath set
2018-03-03 15:24:14 -08:00
Anthony Sottile
ac3a37d1a0
Merge pull request #717 from pre-commit/nodeenv_clean_src
...
Use --clean-src for nodeenv
2018-03-01 15:12:42 -08:00
Anthony Sottile
2722e16fd8
Use --clean-src for nodeenv
2018-03-01 14:06:48 -08:00
Thierry Deo
3793bc32c0
Fix linters
2018-02-26 15:46:33 +01:00
Thierry Deo
2d57068f49
Remove newlines from file contents
2018-02-26 13:29:40 +01:00
Thierry Deo
69333fa227
Add multiline mode to pygrep
2018-02-26 10:17:21 +01:00
Anthony Sottile
2e6cd2a44c
Merge pull request #715 from pre-commit/rev
...
Migrate sha -> rev
2018-02-25 18:42:39 -08:00
Anthony Sottile
5651c66995
Migrate sha -> rev
2018-02-24 20:19:39 -08:00
Anthony Sottile
184e22e81f
Merge pull request #714 from pre-commit/remove_cwd_fn
...
Move cwd() to tests-only
2018-02-24 17:44:45 -08:00
Anthony Sottile
86da772fd2
Merge pull request #713 from pre-commit/update_many_repos
...
Allow autoupdate --repo to be specified multiple times
2018-02-24 17:04:18 -08:00
Anthony Sottile
29033f10ca
Move cwd() to tests-only
2018-02-24 16:44:59 -08:00
Anthony Sottile
082c950d8f
Merge pull request #711 from pre-commit/different_additional
...
Each set of additional dependencies gets its own env
2018-02-24 16:19:34 -08:00
Anthony Sottile
f76d3c4f95
Allow autoupdate --repo to be specified multiple times
2018-02-24 15:42:26 -08:00
Anthony Sottile
8abfb37fdf
Merge pull request #712 from pre-commit/dont_write_to_homedir_under_test
...
Don't write to the home directory under test
2018-02-24 15:36:21 -08:00
Anthony Sottile
b827694520
Each set of additional dependencies gets its own env
2018-02-24 15:28:43 -08:00
Anthony Sottile
d7a41d88c3
Don't write to the home directory under test
2018-02-24 14:36:18 -08:00
Anthony Sottile
29715c9268
Merge pull request #710 from pre-commit/dont_modify_my_npmrc
...
Don't modify user's npmrc under test
2018-02-24 14:20:19 -08:00
Anthony Sottile
40fd04aec3
Don't modify user's npmrc under test
2018-02-24 13:50:15 -08:00
Anthony Sottile
b20aae4fe2
Merge pull request #709 from theresama/update-swift
...
update swift to swift 4
2018-02-24 11:55:53 -08:00
Theresa Ma
98a6fce830
update swift to swift 4
2018-02-24 11:19:13 -08:00
Anthony Sottile
1f13a5b6b9
Merge pull request #700 from pre-commit/cfgv
...
Move pre_commit.schema to cfgv library
2018-02-18 16:17:22 -08:00
Anthony Sottile
bdad930d71
Move pre_commit.schema to cfgv library
2018-02-18 15:25:53 -08:00
Anthony Sottile
8bb4d63d3b
v1.6.0
2018-02-04 12:25:52 -08:00
Anthony Sottile
74fcf16530
Merge pull request #699 from pre-commit/rewrite_hook_template
...
Rewrite the hook template in python
2018-02-04 12:19:27 -08:00
Anthony Sottile
5c90c1a68f
Rewrite the hook template in python
2018-02-03 22:51:00 -08:00
Anthony Sottile
64ff7677fa
Merge pull request #698 from pre-commit/all-repos_autofix_all-repos-sed
...
Change ignored cache dir for pytest 3.4.0
2018-02-01 12:22:46 -08:00
Anthony Sottile
5eedbfc2d5
Change ignored cache dir for pytest 3.4.0
...
Committed via https://github.com/asottile/all-repos
2018-02-01 11:15:30 -08:00
Anthony Sottile
17444cdfc9
Merge pull request #695 from bagerard/Verbose_hook
...
Add a verbose hook option
2018-02-01 08:19:08 -08:00
Bastien Gérard
b319d6f80c
Add a hook option that allows stdout to be printed when exit code is 0 ( #695 )
2018-02-01 12:21:19 +01:00
Anthony Sottile
7f0b427b74
Merge pull request #694 from pre-commit/fix_legacy_commit_msg_hooks
...
Fix legacy commit-msg hooks
2018-01-29 22:17:59 -08:00
Anthony Sottile
49dc689bf0
Fix legacy commit-msg hooks
2018-01-29 21:47:35 -08:00
Anthony Sottile
0a4fb173e4
v1.5.1
2018-01-24 09:46:26 -08:00
Anthony Sottile
c733c39610
Merge pull request #692 from samskiter/patch-1
...
Properly detect if commit is a root commit
2018-01-24 09:41:22 -08:00
Anthony Sottile
4a6fdd4abe
Add test for pushing to unrelated upstream
2018-01-24 09:21:44 -08:00
Sam Duke
1bfd108593
Properly detect if commit is a root commit
...
Fix bad check for ancestor root commits.
2018-01-24 14:01:59 +00:00
Anthony Sottile
51ac0e8bc0
Merge pull request #690 from pre-commit/all-repos_autofix_all-repos-sed
...
Replace deprecated yield_fixture with fixture
2018-01-21 16:18:07 -08:00
Anthony Sottile
0f54fedac9
Replace deprecated yield_fixture with fixture
...
Committed via https://github.com/asottile/all-repos
2018-01-21 15:31:17 -08:00
Anthony Sottile
98ec74dcab
v1.5.0
2018-01-13 20:01:29 -08:00
Anthony Sottile
c7fa3b2da3
Merge pull request #688 from pre-commit/https
...
https-ify links
2018-01-13 18:59:12 -08:00
Anthony Sottile
5a4dc0ce30
https-ify links
...
- A lot of http links loaded fine on https
- pre-commit.com is now loadable on https via cloudflare
2018-01-13 18:17:54 -08:00
Anthony Sottile
c8fd92e368
Merge pull request #687 from pre-commit/deprecate_pcre
...
Deprecate the pcre language
2018-01-13 18:14:41 -08:00
Anthony Sottile
d5dcebf671
Deprecate the pcre language
2018-01-13 17:28:19 -08:00
Anthony Sottile
65f60e2593
Merge pull request #686 from pre-commit/prefix_simplfiy
...
Simplify prefix a bit
2018-01-13 16:52:41 -08:00
Anthony Sottile
8fb644e7c0
Simplify prefix a bit
2018-01-13 16:08:18 -08:00
Anthony Sottile
06ee69b3cc
Merge pull request #685 from pre-commit/windows_node
...
Support node on windows with long path hack
2018-01-13 15:44:05 -08:00
Anthony Sottile
6e46d6ae75
Support node on windows with long path hack
2018-01-12 22:31:43 -08:00
Anthony Sottile
b4541d8a5f
Update the versioned node hook test
2018-01-11 22:20:21 -08:00
Anthony Sottile
577f1093cf
Merge pull request #684 from pre-commit/cleanup_prefixed_cmd_runner
...
Move PrefixedCommandRunner -> Prefix
2018-01-11 22:08:41 -08:00
Anthony Sottile
7d87da8acd
Move PrefixedCommandRunner -> Prefix
2018-01-11 21:41:48 -08:00
Anthony Sottile
c751f629a6
v1.4.5
2018-01-09 10:34:30 -08:00
Anthony Sottile
4d6efe1943
Merge pull request #680 from pre-commit/local_golang_repos
...
Fix broken local golang repos
2018-01-09 10:23:37 -08:00
Anthony Sottile
40690064f7
Fix broken local golang repos
2018-01-09 09:42:44 -08:00
Anthony Sottile
0628df535b
Merge pull request #678 from revolter/hotfix/replace-with-constants
...
Replace string literals with constants
2018-01-09 09:07:34 -08:00
Anthony Sottile
df38e1010b
Remove unused import
2018-01-09 08:49:42 -08:00
Anthony Sottile
2255d8484e
Update message for unstaged config in test
2018-01-09 08:15:27 -08:00
Iulian Onofrei
81df782c20
Update unstaged config file error message
2018-01-09 18:10:05 +02:00
Iulian Onofrei
8407b92b18
Replace string literals with constants
2018-01-09 17:51:41 +02:00
Anthony Sottile
a5f3cefb64
v1.4.4
2018-01-07 21:26:35 -08:00
Anthony Sottile
a18e0af0d2
Merge pull request #676 from pre-commit/no_pager
...
Invoke `git diff` without a pager
2018-01-07 21:24:09 -08:00
Anthony Sottile
029ccc47c8
Invoke git diff without a pager
2018-01-07 20:56:17 -08:00
Anthony Sottile
04aef9e78c
v1.4.3
2018-01-02 19:33:13 -08:00
Anthony Sottile
097bba63b8
Merge pull request #674 from pre-commit/simpler_cross_version_tests
...
Simplify cross version tests
2018-01-02 22:29:22 -05:00
Anthony Sottile
753979d720
Detect the python version based on the py launcher
2018-01-02 19:02:26 -08:00
Anthony Sottile
a506a1cac1
Simplify cross version tests
2018-01-02 18:34:00 -08:00
Anthony Sottile
c5030c8dca
v1.4.2
2018-01-02 14:13:14 -08:00
Anthony Sottile
a61358662a
Merge pull request #671 from rp-tanium/git_env_whitelist
...
Whitelists env var GIT_SSH
2018-01-02 16:52:52 -05:00
Rory Prendergast
355196f92e
backs out unnecessary blank line
2018-01-02 13:05:41 -08:00
Rory Prendergast
9eadfb92fd
reduces line length
2018-01-02 13:05:41 -08:00
Rory Prendergast
e3cf0975f9
Adds whitelist for GIT_* env vars containing only GIT_SSH
2018-01-02 13:05:41 -08:00
Anthony Sottile
9b6fb149f9
Merge pull request #673 from pre-commit/better_travis_workaround
...
Slower travis-ci workaround after 2017 q4 updates
2018-01-02 15:34:14 -05:00
Anthony Sottile
978fefa57a
Slower travis-ci workaround after 2017 q4 updates
2018-01-02 12:17:23 -08:00
Anthony Sottile
41d998f1c4
v1.4.1
2017-11-09 08:36:45 -08:00
Anthony Sottile
bb2ced7b7f
Merge pull request #661 from KevinHock/master
...
[Fix] Add existing repo_config to output_repos
2017-11-08 20:43:08 -06:00
Kevin Hock
ab47d08a38
Make regression test that ensures autoupdate foo keeps everything else
2017-11-08 18:04:34 -08:00
Kevin Hock
090030447d
Combine blocks
2017-11-08 17:05:34 -08:00
Kevin Hock
dfb058f15f
Edit comment again
2017-11-08 15:55:05 -08:00
Kevin Hock
e4f28a2193
Edit comment
2017-11-08 15:53:08 -08:00
Kevin Hock
54ccb65a09
Add existing repo_config to output_repos
2017-11-08 15:50:04 -08:00
Anthony Sottile
dc6b9eed22
v1.4.0
2017-11-08 12:06:24 -08:00
Anthony Sottile
311eddf0f9
Merge pull request #657 from KevinHock/master
...
Add repo option to autoupdate
2017-11-06 20:58:19 -06:00
Anthony Sottile
fccb4e6935
Minor fixes
2017-11-06 18:14:59 -08:00
Kevin Hock
70e7d9c5c4
Keep original test as is, for real
2017-11-06 18:05:13 -08:00
Kevin Hock
e5b8cb0f70
Keep original test as is
2017-11-06 18:05:03 -08:00
Kevin Hock
4d0c400066
Add repo option to autoupdate
2017-11-06 17:19:06 -08:00
Anthony Sottile
0ec3b5556f
Merge pull request #654 from pre-commit/always_run_always_applies
...
always_run hooks always apply to the repository
2017-11-03 12:14:33 -05:00
Anthony Sottile
ae5b74ad38
always_run hooks always apply to the repository
2017-11-03 09:30:03 -07:00
Anthony Sottile
6a177c41ca
Merge pull request #653 from pre-commit/rename_meta_hook
...
Rename check-files-matches-any to check-hooks-apply
2017-11-03 11:24:50 -05:00
Anthony Sottile
e99813f117
Rename check-files-matches-any to check-hooks-apply
2017-11-03 09:18:58 -07:00
Anthony Sottile
f098ec30b9
Merge pull request #652 from pre-commit/remove_slowtests
...
Remove slowtests=false setting
2017-11-02 17:54:57 -05:00
Anthony Sottile
61aa43ddd2
Merge pull request #642 from jimmidyson/docker-selinux
...
Add selinux labelling option to docker_image hook type
2017-11-02 17:50:28 -05:00
Anthony Sottile
56fca92a42
Remove slowtests=false setting
...
It wasn't actually working because of tox, I also don't use this.
2017-11-02 15:48:43 -07:00
Anthony Sottile
2e5b4fcf4c
Add comment about Z flag for selinux
2017-11-02 15:30:28 -07:00
Anthony Sottile
3b10ef419d
Merge pull request #643 from hackedd/meta-hooks
...
Implement support for meta hooks
2017-10-30 13:05:03 -05:00
Anthony Sottile
5a8ca2ffbe
Some minor fixups
2017-10-30 09:12:48 -07:00
Paul Hooijenga
9db827ef9d
Refactor meta hooks
2017-10-28 13:59:11 +02:00
Paul Hooijenga
a0a8fc15ff
Make Not and NotIn namedtuples
2017-10-27 13:30:36 +02:00
Anthony Sottile
bc9344bb40
Merge branch 'master' into meta-hooks
2017-10-26 23:40:14 -05:00
Anthony Sottile
9e193f7fc8
Merge pull request #648 from pre-commit/no_more_manifest_class
...
Remove Manifest, no longer a useful abstraction
2017-10-26 19:02:11 -05:00
Anthony Sottile
84b1ba520d
Remove Manifest, no longer a useful abstraction
2017-10-26 16:17:52 -07:00
Anthony Sottile
71822279ee
Merge pull request #646 from pre-commit/apply_language_to_local_hooks
...
Apply interpreter version defaulting to local hooks too
2017-10-26 17:35:47 -05:00
Anthony Sottile
6a0fe9889b
Apply interpreter version defaulting to local hooks too
2017-10-26 15:02:52 -07:00
Paul Hooijenga
8a0dd01c7e
Implement check-files-matches-any meta hook
2017-10-25 10:09:44 +02:00
Paul Hooijenga
8df11ee7aa
Implement check-useless-excludes meta hook
2017-10-25 10:09:43 +02:00
Jimmi Dyson
f0cf940cb5
Add selinux labelling option to docker_image hook type
2017-10-23 11:11:24 +01:00
Paul Hooijenga
88c676a7c1
Add support for meta hooks
2017-10-22 16:40:19 +02:00
Anthony Sottile
39d5205e31
Merge pull request #640 from pre-commit/unused
...
Remove unused logger
2017-10-20 14:46:50 -07:00
Anthony Sottile
ac21235b84
Remove unused logger
2017-10-20 14:15:15 -07:00
Anthony Sottile
51c476b2de
Merge pull request #639 from pre-commit/lazy_install
...
Lazily install repositories
2017-10-20 13:36:41 -07:00
Anthony Sottile
10912fa03e
Lazily install repositories
2017-10-20 13:04:33 -07:00
Anthony Sottile
2a984c3746
v1.3.0
2017-10-08 15:07:48 -07:00
Anthony Sottile
3f2c6f1328
Merge pull request #633 from pre-commit/try_repo
...
Add `pre-commit try-repo`
2017-10-07 21:54:48 -07:00
Anthony Sottile
2c88791a7f
Add pre-commit try-repo
...
`try-repo` is useful for:
- Trying out a remote hook repository without needing to configure it.
- Testing a hook repository while developing it.
2017-10-07 18:03:52 -07:00
Anthony Sottile
e8641ee0a3
Forgot a line in the changelog
2017-10-03 21:21:24 -07:00
Anthony Sottile
883bd42046
v1.2.0
2017-10-03 21:16:16 -07:00
Anthony Sottile
e70825ab31
Add ctypes to healthy check
2017-10-03 21:10:09 -07:00
Anthony Sottile
a543190f7b
Merge pull request #632 from pre-commit/small_cleanups
...
Small cleanups
2017-09-30 17:20:07 -07:00
Anthony Sottile
18c9e061d8
Small cleanups
2017-09-30 15:53:44 -07:00
Anthony Sottile
e717df0ba8
Merge pull request #630 from pre-commit/pygrep
...
Implement pygrep language as a replacement for pcre
2017-09-24 11:31:09 -07:00
Anthony Sottile
e9509306d8
Implement pygrep language as a replacement for pcre
2017-09-22 22:31:30 -07:00
Anthony Sottile
3a7806ea30
Merge pull request #629 from pre-commit/more_realistic_test_clones
...
Use file:// protocol for cloning under test
2017-09-22 11:04:37 -07:00
Anthony Sottile
989bcfe9ca
Use file:// protocol for cloning under test
2017-09-22 10:38:19 -07:00
Anthony Sottile
e76bc17f53
Merge pull request #627 from pre-commit/simplify_hook_template
...
Use some bash best practices and simplify hook template
2017-09-21 19:39:51 -07:00
Anthony Sottile
916ca72bb1
Use some bash best practices and simplify hook template
2017-09-21 16:09:49 -07:00
Anthony Sottile
eefeaaf844
Merge pull request #626 from pre-commit/pipes_quote_more
...
Use pipes.quote for executable path
2017-09-21 15:49:21 -07:00
Anthony Sottile
873dd173ce
Use pipes.quote for executable path
2017-09-21 15:16:48 -07:00
Anthony Sottile
6b81fe9d58
v1.1.2
2017-09-20 05:49:07 -07:00
Anthony Sottile
ec42a890f3
Merge pull request #624 from pre-commit/include_all_resources
...
Include all resources
2017-09-20 05:43:37 -07:00
Anthony Sottile
d2097ade8b
Include all resources
2017-09-20 05:29:13 -07:00
Anthony Sottile
f4595dce8c
v1.1.1
2017-09-17 17:06:58 -07:00
Anthony Sottile
c3c6175c94
Merge pull request #622 from pre-commit/staged_files_only_patch_dir_does_not_exist
...
Do not crash in staged_files_only if patch_dir does not exist
2017-09-17 17:03:28 -07:00
Anthony Sottile
3a5a8dc76a
Merge pull request #619 from pre-commit/asottile-patch-1
...
Also check the ssl module for virtualenv health.
2017-09-17 15:26:54 -07:00
Anthony Sottile
bcf6321bd4
Do not crash in staged_files_only if patch_dir does not exist
2017-09-17 15:22:48 -07:00
Anthony Sottile
b907c02f05
Also check the ssl module for virtualenv health.
2017-09-14 10:09:25 -07:00
Anthony Sottile
773a817f7f
v1.1.0
2017-09-11 09:07:45 -07:00
Anthony Sottile
5854f6b21e
Merge pull request #617 from pre-commit/global_exclude
...
Implement global exclude
2017-09-10 16:08:40 -07:00
Anthony Sottile
ecdc22ce80
Implement global exclude
2017-09-10 15:09:44 -07:00
Anthony Sottile
6af60158ec
Refactor filename collection for hooks
2017-09-09 22:07:27 -07:00
Anthony Sottile
3cc5aa023e
Merge pull request #616 from pre-commit/fail_fast
...
Implement `fail_fast`.
2017-09-08 16:43:33 -07:00
Anthony Sottile
a821172d9d
Remove defaults before checking whether the intelligent rewrite was successful
2017-09-08 14:28:23 -07:00
Anthony Sottile
72e3989350
Revert "Remove remove_defaults -- it wasn't doing anything"
...
This reverts commit ee392275f3 .
2017-09-08 14:22:36 -07:00
Anthony Sottile
898a3ea1bb
Implement fail_fast.
2017-09-08 13:19:00 -07:00
Anthony Sottile
94dde26603
v1.0.1
2017-09-07 09:56:51 -07:00
Anthony Sottile
39314bfd7e
Merge pull request #614 from pre-commit/migrate_config_retv
...
pre-commit migrate-config should not return nonzero when successful
2017-09-07 09:54:43 -07:00
Anthony Sottile
8a420993eb
Merge pull request #615 from pre-commit/multiple_versions
...
Work around travis-ci/travis-ci#8363
2017-09-07 09:54:31 -07:00
Anthony Sottile
e3ab890269
Work around travis-ci/travis-ci#8363
2017-09-07 09:45:09 -07:00
Anthony Sottile
a78f5d5c24
pre-commit migrate-config should not return nonzero when successful
2017-09-07 09:23:36 -07:00
Anthony Sottile
04018ad4e7
Fix typo in CHANGELOG
2017-09-07 08:57:42 -07:00
Anthony Sottile
54e71c1bab
v1.0.0
2017-09-07 08:50:02 -07:00
Anthony Sottile
9ff6818270
Merge pull request #602 from pre-commit/xdg_cache_dir
...
Adhere to XDG specification for cache dir.
2017-09-07 08:19:45 -07:00
Anthony Sottile
3619f830fe
Merge pull request #610 from pre-commit/config_v2
...
Enable map configurations (config v2).
2017-09-07 08:19:12 -07:00
Anthony Sottile
3f1704ff25
v0.18.3
2017-09-06 10:13:02 -07:00
Anthony Sottile
8f5675d813
Implement pre-commit migrate-config
2017-09-06 10:07:55 -07:00
Anthony Sottile
3e76cdaf25
Enable map configurations (config v2).
2017-09-06 10:01:08 -07:00
Anthony Sottile
0120af56a7
Adhere to XDG specification for cache dir.
2017-09-06 10:00:35 -07:00
Anthony Sottile
ef8347cf2d
Merge pull request #612 from Lucas-C/master
...
NodeJS hooks compatibilty fix for Cygwin - take 2
2017-09-06 08:49:31 -07: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
c86fa144e2
Merge pull request #611 from pre-commit/no_unshallow
...
Remove --unshallow fetch from travis-ci config
2017-09-05 18:07:33 -07:00
Anthony Sottile
68ce070b65
Remove --unshallow fetch from travis-ci config
2017-09-05 17:13:14 -07:00
Anthony Sottile
3e507bf8bd
Merge pull request #608 from pre-commit/nix_runner_cmd_runner
...
Remove Runner.cmd_runner and Store.cmd_runner
2017-09-05 15:11:11 -07:00
Anthony Sottile
6141c419ee
Remove Runner.cmd_runner and Store.cmd_runner
2017-09-05 14:49:31 -07:00
Anthony Sottile
95c3afacda
Config loading uses ordered_load by default
2017-09-05 14:07:27 -07:00
Anthony Sottile
bfa23f1f4f
Merge pull request #606 from pre-commit/minor-hook-tmpl-fixups
...
Fix error message during pre-push / commit-msg
2017-09-05 10:22:43 -07:00
Anthony Sottile
98ca85eef5
Merge pull request #604 from coldnight/master
...
Fix specify config file not work while installing
2017-09-05 10:12:48 -07:00
Anthony Sottile
7c59607d35
Fix error message during pre-push / commit-msg
2017-09-05 09:33:51 -07:00
Anthony Sottile
95f356d64e
Also add run to the other invocations
2017-09-05 09:29:18 -07:00
Anthony Sottile
eb7c9f44b4
Add test for custom config installation
2017-09-05 09:27:00 -07:00
Anthony Sottile
50564480fb
v0.18.2
2017-09-05 08:40:13 -07:00
Anthony Sottile
e8a209f5eb
Merge pull request #605 from pre-commit/non_ascii_filenames
...
Handle non-ascii filenames from git
2017-09-05 08:38:46 -07:00
Anthony Sottile
0815108242
Handle non-ascii filenames from git
2017-09-05 08:10:16 -07:00
wanghui
f9a849abcc
Fix specify config file not work while installing
...
Via `pre-commit install -c .other-config.yaml`
2017-09-05 16:22:54 +08:00
Anthony Sottile
8b14c6c5ae
Merge pull request #601 from pre-commit/less_special_system_exit
...
Use SystemExit instead of PreCommitSystemExit
2017-09-04 14:13:43 -07:00
Anthony Sottile
a9e1940f7e
Use SystemExit instead of PreCommitSystemExit
2017-09-04 13:42:19 -07:00
Anthony Sottile
3f7e715c20
v0.18.1
2017-09-04 12:44:38 -07:00
Anthony Sottile
0e73fb9b6c
Merge pull request #600 from pre-commit/print_locking_less
...
Only print that the lock is being acquired when waiting
2017-09-04 12:43:13 -07:00
Anthony Sottile
7cb3e00731
Only print that the lock is being acquired when waiting
2017-09-04 11:53:17 -07:00
Anthony Sottile
4aa787db19
v0.18.0
2017-09-02 20:46:19 -07:00
Anthony Sottile
4e54429b6d
Merge pull request #598 from pre-commit/docker_image_language
...
Add new docker_image language type.
2017-09-02 20:44:15 -07:00
Anthony Sottile
9c3bbecab8
Add new docker_image language type.
...
`docker_image` is intended to be a lightweight hook type similar to system /
script which allows one to use an existing docker image which provides a
hook.
2017-09-02 19:49:23 -07:00
Anthony Sottile
491b90548f
v0.17.0
2017-08-24 20:09:17 -07:00
Anthony Sottile
fefedfa777
Merge pull request #595 from pre-commit/one_extra_newline
...
Remove extra newline on error() call
2017-08-24 23:15:32 -04:00
Anthony Sottile
eb2ac28f20
Merge pull request #594 from pre-commit/parallel_repository_creation
...
Limit repository creation to one process
2017-08-24 00:37:50 -04:00
Anthony Sottile
625aaf54aa
Limit repository creation to one process
2017-08-23 20:59:03 -07:00
Anthony Sottile
3dade4a0bf
Merge pull request #593 from pre-commit/remove_check_config_hook
...
Remove validate_config hook
2017-08-23 18:34:17 -04:00
Anthony Sottile
bba711f468
Remove extra newline on error() call
2017-08-23 14:20:44 -07:00
Anthony Sottile
9a579b580d
Remove extra newline on error() call
2017-08-23 14:20:33 -07:00
Anthony Sottile
dc5a8a8209
Remove validate_config hook
2017-08-23 14:06:48 -07:00
Anthony Sottile
477c1163b7
Merge pull request #592 from pre-commit/remove_no_stash_allow_unstaged_config
...
Remove --no-stash and --allow-unstaged-config
2017-08-23 17:04:44 -04:00
Anthony Sottile
6793fd8e5d
Remove --no-stash and --allow-unstaged-config
2017-08-23 11:16:37 -07:00
Anthony Sottile
7139a47c1c
Merge pull request #588 from pre-commit/all-repos_autofix_pre-commit-autoupdate
...
Ran pre-commit autoupdate.
2017-08-14 22:13:25 -04:00
Anthony Sottile
2694ebe264
Ran pre-commit autoupdate.
...
Committed via https://github.com/asottile/all-repos
2017-08-14 18:28:55 -07:00
Anthony Sottile
8994e4cd1c
Merge pull request #586 from pre-commit/upgrade_sample_config
...
Upgrade the sample-config output
2017-08-11 00:30:13 -04:00
Anthony Sottile
cb8fb8c7c8
Merge pull request #585 from pre-commit/uninstall_commit_msg
...
Allow commit-msg hooks to be uninstalled
2017-08-10 23:55:56 -04:00
Anthony Sottile
469498ac9d
Upgrade the sample-config output
2017-08-10 20:45:29 -07:00
Anthony Sottile
21b563d516
Merge pull request #584 from pre-commit/fix_typo
...
Fix a typo in the install help
2017-08-10 23:43:04 -04:00
Anthony Sottile
5491f8b5eb
Allow commit-msg hooks to be uninstalled
2017-08-10 20:21:09 -07:00
Anthony Sottile
e90778222d
Fix a typo in the install help
2017-08-10 20:18:37 -07:00
Anthony Sottile
49366f1c4a
v0.16.3
2017-08-10 19:59:53 -07:00
Anthony Sottile
478e90e2fa
Merge pull request #583 from pre-commit/autoupdate_reformatting
...
When possible, preserve config format on autoupdate
2017-08-10 22:54:46 -04:00
Anthony Sottile
ee392275f3
Remove remove_defaults -- it wasn't doing anything
2017-08-10 19:09:25 -07:00
Anthony Sottile
59c6df5e46
When possible, preserve config format on autoupdate
2017-08-10 18:32:24 -07:00
Anthony Sottile
72efbb3950
v0.16.2
2017-08-06 20:24:15 -07:00
Anthony Sottile
dca264d367
Merge pull request #580 from gagern/patch-1
...
Initialize git submodules
2017-08-06 23:10:35 -04:00
Anthony Sottile
f5e4f7cb54
Merge pull request #581 from pre-commit/update_swift_urls
...
Update swift urls (the old ones 404d)
2017-08-06 23:09:44 -04:00
Anthony Sottile
fd01f2d8bf
Update swift urls (the old ones 404d)
2017-08-06 20:01:36 -07:00
Martin von Gagern
8ad5536688
Initialize git submodules
...
Some packages make use of git submodules, and require all of them to be in place to be installed. One example is my libtidy wrapper for node, which depends on the C sources for libtidy (unless a precompiled binary is available for a given platform). I've been asked to add pre-commit support in https://github.com/gagern/node-libtidy/issues/17 but testing that failed because the source tree was lacking its submodules.
2017-08-07 03:52:06 +01:00
Anthony Sottile
677a4f607b
v0.16.1
2017-08-04 10:11:36 -07:00
Anthony Sottile
f909deb037
Merge pull request #578 from Lucas-C/master
...
NodeJS hooks compatibilty fix for Cygwin - fix #455
2017-08-04 12:01:17 -04: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
a3f7b408ab
v0.16.0
2017-08-01 13:41:54 -07:00
Anthony Sottile
5c6273e0b0
Merge pull request #575 from pre-commit/autocrlf_apply_error
...
Workaround git apply with autocrlf=true bug
2017-08-01 15:57:55 -04:00
Anthony Sottile
0548b0b521
Workaround git apply with autocrlf=true bug
2017-08-01 11:54:24 -07:00
Anthony Sottile
ce7481f75b
Merge pull request #571 from pre-commit/plumbing
...
Use more git plumbing commands in staged-files-only
2017-08-01 14:25:34 -04:00
Anthony Sottile
ac0e1a6058
Use more git plumbing commands in staged-files-only
2017-07-31 20:51:45 -07:00
Anthony Sottile
972106c2d7
Merge pull request #574 from pre-commit/error_whitespace_errors
...
Fix patch applying when apply.whitespace=error
2017-07-31 23:50:13 -04:00
Anthony Sottile
d5e2af7de5
Fix patch applying when apply.whitespace=error
2017-07-31 20:21:30 -07:00
Anthony Sottile
ec102a842a
Merge pull request #573 from pre-commit/simplify
...
Simplify crlf tests
2017-07-31 16:48:42 -04:00
Anthony Sottile
5fa021058d
Simplify crlf tests
2017-07-31 13:20:01 -07:00
Anthony Sottile
cc3f2978bc
Merge pull request #572 from pre-commit/test_more_crlf
...
Add more tests for staged-files-only with crlf diffs
2017-07-31 14:39:27 -04:00
Anthony Sottile
51ed907b9f
Add more tests for staged-files-only with crlf diffs
2017-07-31 11:16:40 -07:00
Anthony Sottile
454e0f213a
Merge pull request #569 from Lucas-C/master
...
Making golang-based hooks compatible with Cygwin
2017-07-29 16:41:05 -04:00
Anthony Sottile
3fbe4f5a6f
Appease autopep8
2017-07-29 16:20:45 -04:00
Cimon Lucas (LCM)
9640999fb0
Making golang-based hooks compatible with Cygwin
2017-07-29 11:33:11 +02:00
Anthony Sottile
8f86f8f156
Merge pull request #553 from pre-commit/remove_legacy_hooks_yaml_support
...
Remove legacy 'hooks.yaml' file support
2017-07-26 05:50:41 -07:00
Anthony Sottile
bbee21c98e
v0.15.4
2017-07-23 21:30:51 -07:00
Anthony Sottile
4ac8a5f6ce
Merge pull request #566 from pre-commit/commit_msg
...
Add support for commit-msg git hook
2017-07-23 21:25:22 -07:00
Anthony Sottile
d0b268c813
Add support for commit-msg git hook
2017-07-23 20:50:25 -07:00
Anthony Sottile
a6a4762f0d
Fix resetting of FakeStream
2017-07-23 20:50:25 -07:00
Anthony Sottile
dd182fb42e
v0.15.3
2017-07-20 16:00:14 -07:00
Anthony Sottile
2e23ad43fc
Merge pull request #565 from pre-commit/healthcheck
...
Recover from invalid python virtualenvs
2017-07-20 11:29:55 -07:00
Anthony Sottile
cff98a634d
Recover from invalid python virtualenvs
2017-07-20 10:57:09 -07:00
Anthony Sottile
64dd893ab4
Upgrade add-trailing-comma
2017-07-19 11:21:03 -07:00
Anthony Sottile
8bb9532b54
Merge pull request #563 from pre-commit/upgrade_add_trailing_comma_more
...
Upgrade add-trailing-comma to 0.5.1
2017-07-17 18:58:14 -07:00
Anthony Sottile
3e3932d5a6
Upgrade add-trailing-comma to 0.5.1
2017-07-17 17:39:55 -07:00
Anthony Sottile
412bb7c718
Merge pull request #561 from pre-commit/upgrade_add_trailing_comma
...
Upgrade add-trailing-comma to 0.4.0
2017-07-15 14:17:53 -07:00
Anthony Sottile
be3fbdf94e
Upgrade add-trailing-comma to 0.4.0
2017-07-15 12:32:36 -07:00
Anthony Sottile
86d9ca053b
Remove legacy 'hooks.yaml' file support
2017-07-13 10:29:36 -07:00
Anthony Sottile
7aeb4fe0f7
Merge pull request #560 from pre-commit/add_trailing_comma
...
Use asottile/add-trailing-comma
2017-07-12 20:02:57 -07:00
Anthony Sottile
5c0783b2d0
Try picking a pypy
2017-07-12 19:08:53 -07:00
Anthony Sottile
0c70fa4229
Use asottile/add-trailing-comma
2017-07-12 18:30:51 -07:00
Anthony Sottile
1a07a24d13
Merge pull request #559 from pre-commit/remove_pypy3_hacks
...
Remove pypy3 workarounds since we don't test pypy3.2
2017-07-09 15:15:13 -07:00
Anthony Sottile
fb7d6c7b0c
Remove pypy3 workarounds since we don't test pypy3.2
2017-07-09 14:40:30 -07:00
Anthony Sottile
33a3ceb129
v0.15.2
2017-07-09 14:11:17 -07:00
Anthony Sottile
87e07a5b82
Merge pull request #558 from evhub/master
...
Fix windows virtualenv issue
2017-07-09 14:09:53 -07:00
Evan Hubinger
4262487d12
Fix windows virtualenv issue
2017-07-09 13:40:51 -07:00
Anthony Sottile
e2bae300fe
v0.15.1
2017-07-09 10:22:19 -07:00
Anthony Sottile
b5519cac2c
Merge pull request #556 from pre-commit/smarter_default_python_language
...
Use a more intelligent default language version
2017-07-09 09:59:34 -07:00
Anthony Sottile
d876661345
Use a more intelligent default language version
2017-07-08 21:11:48 -07:00
Anthony Sottile
853cbecd4e
Merge pull request #555 from pre-commit/no_subprocess_touch_tests
...
Replace calls to touch with open(..., 'a').close()
2017-07-08 16:09:11 -07:00
Anthony Sottile
a4da7b8c8c
Replace calls to touch with open(..., 'a').close()
2017-07-08 15:43:36 -07:00
Anthony Sottile
f33a254dd8
Merge pull request #552 from pre-commit/more_directed_symlink_test
...
More specific symlink testing without checking in a symlink
2017-07-02 22:05:06 -07:00
Anthony Sottile
096f906912
More specific symlink testing without checking in a symlink
2017-07-02 21:49:41 -07:00
Anthony Sottile
44b2af80f4
dogfood: upgrade hooks
2017-07-02 21:25:49 -07:00
Anthony Sottile
416c0756b6
v0.15.0
2017-07-02 20:06:49 -07:00
Anthony Sottile
3c88531d79
Merge pull request #551 from pre-commit/types
...
Types
2017-07-02 20:01:45 -07:00
Anthony Sottile
05a108efe1
Implement exclude_types
2017-07-02 19:08:33 -07:00
Anthony Sottile
f956f421be
Replace our implementation of shebang parsing with identify's
2017-07-02 18:51:26 -07:00
Anthony Sottile
a58d99ac40
Implement types filtering
2017-07-02 18:51:23 -07:00
Anthony Sottile
a68c1ab0d2
Add 'types' to the schema
2017-07-02 13:20:39 -07:00
Anthony Sottile
70bd8215b2
v0.14.3
2017-06-28 18:10:09 -07:00
Anthony Sottile
84436ad884
Merge pull request #550 from pre-commit/origin_source_environment_variables
...
Expose --source and --origin as environment variables
2017-06-28 12:31:29 -04:00
Anthony Sottile
7b6ea994b8
Expose --source and --origin as environment variables
2017-06-27 10:08:16 -07:00
Anthony Sottile
75256522bc
v0.14.2
2017-06-09 13:29:43 -07:00
Anthony Sottile
be1256f35a
Merge pull request #546 from pre-commit/no_ext_diff
...
Run git diff with --no-ext-diff
2017-06-09 13:01:44 -07:00
Anthony Sottile
321210d332
Run git diff with --no-ext-diff
2017-06-09 08:34:04 -07:00
Anthony Sottile
3874636f8f
Fix typo in changelog
2017-06-03 10:01:41 -07:00
Anthony Sottile
844c839067
v0.14.1
2017-06-02 08:41:56 -07:00
Anthony Sottile
e150921c75
Followup to #533 , match no files when omitted
2017-06-02 08:39:10 -07:00
Anthony Sottile
fc907b512a
Merge pull request #542 from pre-commit/virtualenv_no_download
...
Use VIRTUALENV_NO_DOWNLOAD in pre-commit
2017-06-01 20:29:17 -07:00
Anthony Sottile
a1e3a0a131
Use VIRTUALENV_NO_DOWNLOAD in pre-commit
2017-06-01 14:11:45 -07:00
Anthony Sottile
cb71ea09ff
Merge pull request #540 from dainyl/master
...
Fix for #533
2017-05-30 19:26:47 -07:00
Dain Liffman
d731652a22
Fix for #533
2017-05-31 10:09:42 +08:00
Anthony Sottile
e5c9d3614b
v0.14.0
2017-05-16 12:49:35 -07:00
Anthony Sottile
acc28efe2f
Merge pull request #538 from absassi/pass-filenames
...
Add pass_filenames hook option
2017-05-13 17:18:16 -07:00
André Berti Sassi
7259135d19
Fix string literal type for Python 3
2017-05-13 20:12:16 -03:00
André Berti Sassi
e774c09fac
Add pass_filenames hook option
...
This option controls whether filenames are passed along as arguments to
the hook program.
2017-05-13 14:28:17 -03:00
Anthony Sottile
6025475afb
Merge pull request #537 from pre-commit/unicode_commit_messages_python2
...
Fix non-ascii merge commit messages in python2
2017-05-10 15:06:19 -07:00
Anthony Sottile
964948b33d
Fix non-ascii merge commit messages in python2
2017-05-10 12:52:24 -07:00
Anthony Sottile
e3b14c35f7
Merge pull request #535 from pre-commit/fixup
...
Fixup log_file commit
2017-05-09 06:54:15 -07:00
Anthony Sottile
840a55bbc3
Fixup log_file commit
2017-05-08 11:04:07 -07:00
Anthony Sottile
71e500a177
Merge pull request #530 from alex-hutton/output-to-file-499
...
Adds support for 'log_file' in hook config
2017-05-08 10:51:57 -07:00
Alex Hutton
f2644a4f2e
Adds support for 'log_file' in hook config
...
Specify a filename on a per hook basis and
pre-commit will write the STDOUT and STDERR
of that hook into the file. Useful for CI.
Resolves #499 .
2017-05-08 10:54:04 +10:00
Anthony Sottile
5d43b05bd3
Merge pull request #529 from pre-commit/tags_only_default
...
Make autoupdate --tags-only the default, add --bleeding-edge
2017-05-05 14:49:15 -07:00
Anthony Sottile
918179849d
Make autoupdate --tags-only the default, add --bleeding-edge
2017-04-29 17:40:42 -07:00
Anthony Sottile
1be4e4f82e
Merge pull request #517 from hackedd/windows-color
...
Windows: enable ANSI escape support in console
2017-04-07 15:22:47 -04:00
Paul Hooijenga
3c374802ec
Omit Windows only file from coverage.
2017-04-07 21:10:19 +02:00
Paul Hooijenga
6c588f189d
Windows: enable ANSI escape support in console.
2017-04-01 23:34:02 +02:00
Anthony Sottile
b63748f557
Merge pull request #515 from pre-commit/sample_config
...
Add a `pre-commit sample-config` command
2017-03-30 13:31:14 -07:00
Anthony Sottile
fa06e72f01
Add a pre-commit sample-config command
2017-03-30 08:45:46 -07:00
Anthony Sottile
9d747fb471
v0.13.6
2017-03-27 07:54:44 -07:00
Anthony Sottile
b89962e1dd
Merge pull request #513 from pre-commit/always_run_regression
...
Fix regression in 0.13.5 with always_run + files
2017-03-27 07:53:47 -07:00
Anthony Sottile
ce2f68b40a
Fix regression in 0.13.5 with always_run + files
2017-03-27 07:39:19 -07:00
Anthony Sottile
e1cdbb3844
v0.13.5
2017-03-26 14:58:59 -07:00
Anthony Sottile
9f5c99577b
v0.13.4
2017-03-26 13:45:03 -07:00
Anthony Sottile
6e5ac07927
Merge pull request #507 from kintoandar/patch-1
...
Fix typos on help description
2017-03-10 09:26:56 -08:00
Joel Bastos
b14fa5a0d8
Fix typos on help description
2017-03-10 17:11:09 +00:00
Anthony Sottile
5c2d196168
Merge pull request #505 from pre-commit/dumb_jsonschema
...
Replace jsonschema with better error messages
2017-03-08 16:21:05 -08:00
Anthony Sottile
c65a11ce3d
Replace five with six
2017-03-08 14:25:54 -08:00
Anthony Sottile
cb8dd335f4
Replace jsonschema with better error messages
2017-03-08 14:07:00 -08:00
Anthony Sottile
71bbdb5b4c
Merge pull request #504 from pre-commit/use_version_everywhere
...
Use our VERSION constant moar
2017-03-06 13:40:52 -08:00
Anthony Sottile
63d6bed423
Use our VERSION constant moar
2017-03-06 13:27:45 -08:00
Anthony Sottile
c1ca3aeaf7
tox list matches travis-ci
2017-02-25 14:09:16 -08:00
Anthony Sottile
772a6eb65e
Merge pull request #501 from pre-commit/diff_on_failure
...
Add a --show-diff-on-failure option
2017-02-25 13:48:48 -05:00
Anthony Sottile
05c88738b0
Add a --show-diff-on-failure option
2017-02-25 10:14:17 -08:00
Anthony Sottile
0ece39c484
v0.13.3
2017-02-23 17:41:58 -08:00
Anthony Sottile
7a579af884
Merge pull request #497 from pre-commit/future_versions
...
Make hook-tmpl resilient to future changes
2017-02-23 16:15:23 -05:00
Anthony Sottile
dbd131f646
Minor fixups
2017-02-23 13:11:40 -08:00
Anthony Sottile
478b0c70d8
Merge pull request #496 from philipgian/master
...
Do not run pre-commit if there is no config file
2017-02-23 16:06:19 -05:00
Filippos Giannakos
2f4199850d
Add --allow-missing-config option to install
...
When no '.pre-commit-config.yaml' file exists while `pre-commit` hooks
are enabled, `pre-commit` returns an error and the action is aborted.
This is a very common scenario when pre-commit is added later on a
project and the user wants to work on a previous branch where the
configuration file does not exist.
This commits allow the user to optionally install the `pre-commit` hooks
with an option to allow a missing configuration and trigger only the
legacy pre-commit hooks (if any) when it is missing.
2017-02-23 18:25:51 +02:00
Anthony Sottile
173ce83484
Make hook-tmpl resilient to future changes
2017-02-22 08:48:36 -08:00
Anthony Sottile
41dcaff3fb
v0.13.2
2017-02-17 07:16:39 -08:00
Anthony Sottile
b66c292ede
Merge pull request #494 from pre-commit/validate_minimum_version
...
Validate minimum version for local hooks as well
2017-02-16 18:11:31 -05:00
Anthony Sottile
5bfe4e5366
Validate minimum version for local hooks as well
2017-02-16 14:30:01 -08:00
Anthony Sottile
5cca326854
Merge pull request #493 from pre-commit/encode_version_language_local_hooks
...
Encode the 'local hooks repo' version into the store
2017-02-16 16:50:10 -05:00
Anthony Sottile
31ccc19ba3
Encode the 'local hooks repo' version into the store
2017-02-16 12:32:58 -08:00
Anthony Sottile
927f471a6c
Merge pull request #490 from pre-commit/some_minor_cleanup
...
Some minor cleanup
2017-02-16 14:51:43 -05:00
Anthony Sottile
e4eb2b0fc5
__defaults__ is available in py27
2017-02-16 10:46:23 -08:00
Anthony Sottile
109c17c5df
Some minor constants cleanup
2017-02-16 10:44:08 -08:00
Anthony Sottile
b32facc5b3
v0.13.1
2017-02-16 10:08:06 -08:00
Anthony Sottile
aa72fe5d3f
Make the dummy gem valid by giving it a summary
2017-02-16 10:07:04 -08:00
Anthony Sottile
3bc12b14e9
v0.13.0
2017-02-16 09:55:57 -08:00
Anthony Sottile
0478c6008c
Merge pull request #489 from pre-commit/local_language_hooks
...
Local language hooks
2017-02-16 12:51:57 -05:00
Anthony Sottile
f000241dcb
Local repositories clone a blank repo
2017-02-15 15:36:53 -08:00
Anthony Sottile
e704edb5e2
Refactor Repository to be more functional
2017-02-15 12:46:08 -08:00
Anthony Sottile
e5669ca135
Merge pull request #488 from pre-commit/sha_to_ref_more
...
Sha to ref more
2017-02-15 12:14:28 -05:00
Anthony Sottile
f7b2948368
Rename some variables to be more like our internal state
2017-02-15 08:57:10 -08:00
Anthony Sottile
36cfeac952
hook-tmpl doesn't need executable bit, we set it
2017-02-15 08:51:06 -08:00
Anthony Sottile
9332780cdd
Merge pull request #487 from pre-commit/cherry_pick_grep_fix
...
PCRE tests work on osx
2017-02-15 11:25:51 -05:00
Thierry Deo
e02c489d76
PCRE tests work on osx
2017-02-15 08:11:50 -08:00
Anthony Sottile
b514e757d5
Merge pull request #486 from philipgian/master
...
Improve pre-push fileset for a new remote branch
2017-02-14 09:34:42 -08:00
Filippos Giannakos
8c78ddfd5c
Improve pre-push fileset for a new remote branch
...
When pushing a branch that does not exist on the remote repository,
instead of blindly running the checks on every file, this commit locates
the first ancestor not present on the remote repository and uses its
parent as the source of the fileset calculation. If it has no parents,
then the remote repository has no common commits and the checks should
be run on all files.
2017-02-14 19:19:35 +02:00
Anthony Sottile
a81de1ebb3
Merge pull request #483 from alex-hutton/master
...
Fix eslint on windows
2017-02-10 09:47:03 -08:00
Alex Hutton
42000c4521
Fix eslint on windows
...
- The bare exe was the first filename attempted to match,
this changes means it will be matched last, allowing other files
to be matched if they exist. The result is that eslint now works
on Windows.
2017-02-10 18:09:00 +11:00
Anthony Sottile
63f65a419c
Merge pull request #482 from tdeo/keep_dependencies_order
...
Keep dependency in order
2017-02-09 10:40:07 -08:00
Thierry Deo
397efa8080
Keep additional_dependencies in the order in which they are specified
2017-02-09 18:09:09 +01:00
Anthony Sottile
7f18b03201
Fix coveralls badge
2017-02-01 08:27:41 -08:00
Anthony Sottile
8eb65b229f
Merge pull request #481 from pre-commit/improve_messaging_for_nonexistent_hook
...
Improve messaging for missing hook given #480
2017-01-30 21:28:10 -08:00
Anthony Sottile
c08400e2bc
Improve messaging for missing hook given #480
2017-01-30 20:43:20 -08:00
Anthony Sottile
cf1fa70252
Merge pull request #480 from pre-commit/futureproof
...
Make autoupdate slightly more future proof
2017-01-30 20:28:42 -08:00
Anthony Sottile
8d589a5e97
Make autoupdate slightly more future proof
2017-01-30 18:54:56 -08:00
Anthony Sottile
308f2cb9cd
Merge pull request #479 from pre-commit/more_py26_code
...
Remove pre_commit.ordereddict module
2017-01-30 09:05:35 -08:00
Anthony Sottile
7e512004d6
Remove pre_commit.ordereddict module
2017-01-30 08:21:34 -08:00
Anthony Sottile
5a1c4bed62
v0.12.2
2017-01-27 14:28:26 -08:00
Anthony Sottile
6e2373ff43
Merge pull request #478 from pre-commit/docker_build_old_docker
...
Put the `.` in docker build at the end.
2017-01-27 14:27:24 -08:00
Anthony Sottile
8c27f2c50b
Put the . in docker build at the end.
...
Resolves #477
2017-01-27 14:22:00 -08:00
Anthony Sottile
3986db81ae
v0.12.1
2017-01-25 21:16:04 -08:00
Anthony Sottile
583bc575d5
Merge pull request #476 from pre-commit/tags_only
...
Add a --tags-only option to autoupdate
2017-01-25 21:15:10 -08:00
Anthony Sottile
52cd42316c
Add a --tags-only option to autoupdate
2017-01-25 21:02:50 -08:00
Anthony Sottile
209dc07b31
Merge pull request #475 from pre-commit/golang_improvements
...
additional_dependencies support for golang hooks
2017-01-25 20:45:49 -08:00
Anthony Sottile
abcc41611e
Use a binary which works on windows
2017-01-25 20:32:54 -08:00
Anthony Sottile
51d673dff5
Remove unnecessary files after installation
2017-01-25 16:45:03 -08:00
Anthony Sottile
84ba1fd0c2
additional_dependencies support for golang hooks
2017-01-25 13:44:35 -08:00
Anthony Sottile
cc1eac46e4
Merge pull request #474 from pre-commit/go_passes_on_windows
...
The golang tests pass on windows
2017-01-24 21:41:41 -08:00
Anthony Sottile
aea9d8e49b
The golang tests pass on windows
2017-01-24 21:17:12 -08:00
Anthony Sottile
abbde722f4
pre-commit autoupdate
2017-01-24 19:24:10 -08:00
Anthony Sottile
1096352b69
v0.12.0
2017-01-24 18:20:56 -08:00
Anthony Sottile
9eeb701e26
Merge pull request #473 from pre-commit/golang_hooks
...
Add first class support for golang hooks
2017-01-24 16:54:03 -08:00
Anthony Sottile
068c18d38a
Add first class support for golang hooks
2017-01-24 13:49:22 -08:00
Anthony Sottile
209339582c
Merge pull request #472 from chriskuehl/gemfile-in-root
...
Fix ruby hooks in projects with weird options in.bundle/config
2017-01-24 06:22:43 -08:00
Chris Kuehl
8f057b0b1b
Ignore bundle config files when running ruby hooks
2017-01-23 21:23:14 -08:00
Chris Kuehl
260f981ae8
Add failing test for BUNDLE_DISABLE_SHARED_GEMS
2017-01-23 19:59:28 -08:00
Anthony Sottile
ad8eb93af4
Merge pull request #468 from pre-commit/py36
...
Test py36 instead of py34
2017-01-21 17:20:40 -08:00
Anthony Sottile
1a4c7aa612
Merge pull request #470 from pre-commit/pre_commit_hooks_yaml
...
Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml
2017-01-21 17:09:35 -08:00
Anthony Sottile
b9e5184ebd
Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml
2017-01-21 13:47:59 -08:00
Anthony Sottile
b90a598fac
Merge pull request #469 from pre-commit/set_literals
...
py27+ syntax improvements
2017-01-21 12:30:09 -08:00
Anthony Sottile
ba75867c93
py27+ syntax improvements
2017-01-21 11:49:53 -08:00
Anthony Sottile
99b4789ec2
Test py36 instead of py34
2017-01-20 21:07:48 -08:00
Anthony Sottile
0a93f3bfdd
v0.11.0
2017-01-20 20:33:06 -08:00
Anthony Sottile
ba09a2dfff
Merge pull request #467 from benasher44/basher_swiftpm_support
...
SwiftPM support
2017-01-16 19:16:17 -08:00
Anthony Sottile
b6937f33e2
Fixups to make appveyor happy
2017-01-16 18:50:49 -08:00
Anthony Sottile
1e5c3324e3
Install swift in travis-ci
2017-01-16 17:50:09 -08:00
Ben Asher
ac2520c86f
skip if swift not installed
2017-01-13 13:51:10 -08:00
Ben Asher
ca731268a4
added test for swift hook
2017-01-13 13:33:44 -08:00
Ben Asher
14cebbb25f
PR feedback fixes
2017-01-13 13:05:44 -08:00
Ben Asher
c68ef12484
fixed path to binary
2017-01-13 11:38:47 -08:00
Ben Asher
b271060aef
fix CI issues
2017-01-13 11:23:16 -08:00
Ben Asher
8893127f27
correctly use ENVIRONMENT_DIR
2017-01-13 11:20:25 -08:00
Ben Asher
bea4e89a48
SwiftPM support
2017-01-13 10:19:41 -08:00
Anthony Sottile
cc0f40fc96
v0.10.1
2017-01-05 12:22:40 -08:00
Anthony Sottile
251ff7f467
Merge pull request #463 from pre-commit/shlex_more
...
Make shlex behaviour of entry more consistent
2017-01-05 12:20:58 -08:00
Anthony Sottile
6055af8bc8
Make shlex behaviour of entry more consistent
2017-01-05 11:52:29 -08:00
Anthony Sottile
0de174f2ac
Merge pull request #462 from bpicolo/support_args_in_docker_entrypoint
...
Support docker hooks with args
2017-01-05 10:34:31 -08:00
Ben Picolo
8cbd56a0a5
Put user back where it was
2017-01-05 12:55:08 -05:00
Ben Picolo
54d212f0d7
Use shlex.split
2017-01-05 10:52:31 -05:00
Ben Picolo
b7bd825e15
Support docker hooks with args
2017-01-05 09:31:22 -05:00
Anthony Sottile
58df7c06e1
v0.10.0
2017-01-04 12:43:57 -08:00
Anthony Sottile
a2ba618d72
Merge pull request #461 from pre-commit/only_pull_on_initial_build
...
Only --pull on initial docker build
2017-01-04 11:59:52 -08:00
Anthony Sottile
e022bc6735
Only --pull on initial docker build
2017-01-04 11:27:40 -08:00
Anthony Sottile
6046b8bd7e
Merge pull request #459 from bpicolo/docker_support
...
Docker hook support for pre-commit
2017-01-04 10:51:25 -08:00
Ben Picolo
08b379bf45
Coverage complete
2017-01-04 13:16:32 -05:00
Ben Picolo
b06da3e9cd
Code review tweaks
2017-01-04 13:05:54 -05:00
Anthony Sottile
fa57970c29
Merge pull request #460 from pre-commit/install_hooks_command
...
Add an install-hooks command (similar to install --install-hooks). Resolves #456
2017-01-04 08:53:18 -08:00
Ben Picolo
86c0e6d297
Inverse md5 bytesifying
2017-01-04 10:52:56 -05:00
Anthony Sottile
f238495d6b
Add an install-hooks command (similar to install --install-hooks). Resolves #456
2017-01-04 07:52:16 -08:00
Ben Picolo
baf254ab78
Fix user so we can mount volumes as RW
2017-01-04 10:44:18 -05:00
Ben Picolo
9b92f96ed0
Code cleanup and tests
2017-01-04 10:35:00 -05:00
Ben Picolo
5f392f0ba5
Docker hook support for pre-commit
2017-01-03 16:47:59 -05:00
Anthony Sottile
8837cfa7ff
v0.9.4
2016-12-05 08:07:53 -08:00
Anthony Sottile
1a5f247a7b
Merge pull request #449 from pre-commit/pcre_not_found
...
xargs returns nonzero for negate + not found exe (fixes pcre + not found #447 )
2016-12-05 08:04:56 -08:00
Anthony Sottile
a157e1a63f
xargs returns nonzero for negate + not found exe (fixes pcre + not found #447 )
2016-12-04 15:07:35 -08:00
Anthony Sottile
0e2c3c1ff9
Merge pull request #441 from alzeih/patch-1
...
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
2016-12-03 16:47:11 -08:00
alzeih
bdcbdc2e37
Fix test error "fatal: empty ident name (for <(null)>) not allowed"
...
Occurs when tests run with tox not with Travis CI or Appveyor
Changed existing tox setenv statement to use whitespace around `=` as per
http://tox.readthedocs.io/en/latest/example/basic.html#setting-environment-variables
2016-12-04 13:33:41 +13:00
Anthony Sottile
cf178f99c4
Merge pull request #444 from snakescott/config
...
Add option to run from alternate config file
2016-12-03 11:04:39 -08:00
Jacob Scott
372069f3e5
minor cleanup
2016-12-03 10:47:38 -08:00
Anthony Sottile
8cd62452fe
Merge pull request #442 from alzeih/patch-2
...
Update the archive resources (rbenv, ruby-build, ruby-download)
2016-12-02 21:11:11 -08:00
alzeih
bbbc29af6f
Update the archive resources
2016-12-03 17:39:41 +13:00
Jacob Scott
727247e6ed
Add tests for alternate config
2016-12-02 16:25:10 -08:00
Jacob Scott
f205e6d170
Incoroporate PR feedback
...
* Make config_file a required argument to Runner
* Update main.py
* Update tests to make them all green
New test to test alternate config functionality coming in next commit
2016-12-02 13:53:59 -08:00
Jacob Scott
f1c00eefe4
Add option to run from alternate config file
2016-12-02 11:30:45 -08:00
Anthony Sottile
da3458cd25
Merge pull request #439 from pre-commit/configure_loggers_under_test
...
Configure logging under test
2016-11-26 17:53:08 -08:00
Anthony Sottile
573442faf3
Configure logging under test
2016-11-26 16:41:45 -08:00
Anthony Sottile
747eb1fe61
Merge pull request #438 from pre-commit/cygwin_check_after_setup_code
...
Add cygwin check after initialization. Resolves #437
2016-11-26 15:30:12 -08:00
Anthony Sottile
4e0f73bbf3
Add cygwin check after initialization. Resolves #437
2016-11-26 15:16:55 -08:00
Anthony Sottile
88f9f76e48
Merge pull request #436 from pre-commit/warn_cygwin_mismatched
...
Warn on cygwin python/git mismatch. Resolves #354
2016-11-26 15:05:27 -08:00
Anthony Sottile
526abd9251
Warn on cygwin python/git mismatch. Resolves #354
2016-11-26 14:44:29 -08:00
Anthony Sottile
d17daf7fd1
Merge pull request #435 from pre-commit/centralize_logging
...
Centralize logging initialization
2016-11-26 14:33:58 -08:00
Anthony Sottile
a7169905dc
Centralize logging initialization
2016-11-26 14:19:37 -08:00
Anthony Sottile
323507c9e3
Merge pull request #434 from pre-commit/reorg_output
...
Reorganize output writing
2016-11-26 14:04:15 -08:00
Anthony Sottile
893e0a9d49
Allow python tests to avoid the network wrt virtualenv
2016-11-26 13:41:11 -08:00
Anthony Sottile
afbb6c787b
Remove pypy3 for now (pip has dropped support)
2016-11-26 12:26:23 -08:00
Anthony Sottile
0dda19f691
Reorganize output writing
2016-11-26 12:15:55 -08:00
Anthony Sottile
1adfa24124
v0.9.3
2016-11-07 13:20:39 -08:00
Anthony Sottile
eb5e15edaa
Merge pull request #427 from pre-commit/setup_cfg_issue_425
...
Allow virtualenv creation with strange setup.cfg. Resolves #425
2016-11-07 11:58:22 -08:00
Anthony Sottile
5ace43765b
Allow virtualenv creation with strange setup.cfg. Resolves #425
2016-11-07 11:09:32 -08:00
Anthony Sottile
4f73a74378
Merge pull request #428 from pre-commit/fix_latest_git
...
Fix latest-git.sh
2016-11-07 11:08:59 -08:00
Anthony Sottile
a5aa32ee72
Fix latest-git.sh
2016-11-07 10:37:46 -08:00
Anthony Sottile
9ef0c06d3f
v0.9.2
2016-10-25 13:10:11 -07:00
Anthony Sottile
8bcf24e5d5
Merge pull request #421 from pre-commit/py26_cleanup
...
shlex.split works in py27+
2016-10-23 17:31:15 -07:00
Anthony Sottile
c4c02f71a6
Merge pull request #420 from pre-commit/stdlib_venv_strikes_again
...
Fix virtualenv-inside-venv on osx. Resolves #419
2016-10-23 17:00:24 -07:00
Anthony Sottile
cce59d7957
shlex.split works in py27+
2016-10-23 16:55:16 -07:00
Anthony Sottile
3b888c9e42
Stop testing against py33
2016-10-23 16:51:53 -07:00
Anthony Sottile
e832ddc57f
Merge pull request #408 from pre-commit/no_pyterminalsize
...
Use 80 or min width instead of terminal size
2016-10-23 16:48:53 -07:00
Anthony Sottile
d5ebea31d7
Fix virtualenv-inside-venv on osx. Resolves #419
2016-10-23 16:43:34 -07:00
Anthony Sottile
bbf1f62ed6
Merge pull request #412 from pre-commit/remove_py26_format_literals
...
Remove py26 format literals
2016-09-15 09:20:42 -07:00
Anthony Sottile
b81c9802ae
Remove py26 format literals
...
Resolves #403
2016-09-15 08:41:58 -07:00
Anthony Sottile
26e60fa333
v0.9.1
2016-09-10 09:49:03 -07:00
Anthony Sottile
b511bac036
Merge pull request #411 from pre-commit/regression_test_for_409
...
Add regression test for external diff tools
2016-09-10 12:46:17 -04:00
Anthony Sottile
cc65fa98d2
Add regression test for external diff tools
...
See #409
Resolves #410
2016-09-10 09:24:28 -07:00
Anthony Sottile
4b90faab27
Merge pull request #409 from samsaggace/master
...
Fix file stashing with external diff tool
2016-09-09 10:56:47 -04:00
Sebastien Chemin
5206ce2448
Fix file stashing with external diff tool
...
When git is configured to use an external diff tool to show diffs
(eg. 'git config diff.external mytool'), the stashing unstaged files
will create an empty file that can't be recovered.
Some modifications are permanently lost...
Just disable the ext-diff of git diff to avoid any issue.
Change-Id: I10a57ac2acbcb1f7219455f1958efd50d8452d6a
2016-09-09 16:36:32 +02:00
Anthony Sottile
9c6484b94f
Merge pull request #407 from pre-commit/nopy26_tarfile_open
...
Remove tarfile_open (tarfile open in 2.7+)
2016-08-31 17:24:29 -07:00
Anthony Sottile
f2f3054d8b
Merge pull request #406 from pre-commit/nopy26_logging_handler
...
Use super() ('newstyle class' in 2.7+)
2016-08-31 17:24:22 -07:00
Anthony Sottile
a677c42e21
Use 80 or min width instead of terminal size
2016-08-31 17:15:52 -07:00
Anthony Sottile
57cc50e0ad
Remove tarfile_open (tarfile open in 2.7+)
2016-08-31 16:24:30 -07:00
Anthony Sottile
5961a8e5f1
Use super() ('newstyle class' in 2.7+)
2016-08-31 16:20:55 -07:00
Anthony Sottile
0a810249e3
v0.9.0
2016-08-31 12:41:38 -07:00
Anthony Sottile
60cc4158ed
Merge pull request #400 from pre-commit/fix_trailing_whitespace_non_utf8_diff
...
Fix staged-files-only with a non-utf8-trailing-whitespace diff. Resolves #397
2016-08-18 17:29:15 +02:00
Anthony Sottile
b05cc4077e
Fix staged-files-only with a non-utf8-trailing-whitespace diff. Resolves #397
2016-08-18 07:37:33 -07:00
Anthony Sottile
f11338ccfa
Merge pull request #398 from sanmai-NL/clarify_git_err_msg
...
Clarify/correct error message
2016-08-18 16:36:33 +02:00
Anthony Sottile
b6bcc8a80d
Merge pull request #399 from pre-commit/stop_testing_py26
...
Stop supporting python2.6 Resolves #263
2016-08-18 16:36:14 +02:00
Anthony Sottile
1522a8e05b
Stop supporting python2.6 Resolves #263
2016-08-18 07:32:47 -07:00
Sander Maijers
1d4a332e04
Clarify/correct error message
...
The error also occurs if the `git` utility isn't available.
2016-08-16 15:47:17 +02:00
Anthony Sottile
ea05189c28
Merge pull request #387 from pre-commit/better_suggest_autoupdate
...
Clarify language around missing hooks. Resolves #386
2016-06-25 10:52:32 -07:00
Anthony Sottile
5547db93ef
Clarify language around missing hooks. Resolves #386
2016-06-25 08:14:58 -07:00
Anthony Sottile
99edd0d5c9
Merge pull request #382 from pre-commit/tags_when_available
...
Autoupdate to tags when available
2016-06-23 09:56:33 -07:00
Anthony Sottile
758faa4ae7
Autoupdate to tags when available
2016-06-23 08:29:33 -07:00
Anthony Sottile
d845ec6e36
Merge pull request #375 from vinayinvicible/master
...
only consider forward diff in changed files
2016-06-01 10:17:21 -07:00
Anthony Sottile
d2c17ed226
Merge pull request #378 from pre-commit/use_py34_py35
...
Use python3.4 and 3.5 instead of 3.3 and 3.4
2016-06-01 10:17:09 -07:00
Anthony Sottile
a5f312e4e1
Use python3.4 and 3.5 instead of 3.3 and 3.4
2016-06-01 09:20:41 -07:00
Anthony Sottile
b81e489cb2
Merge pull request #377 from pre-commit/py35_travis
...
Simpler python3.5 on travis-ci
2016-06-01 09:20:17 -07:00
Anthony Sottile
31599822fc
Simpler python3.5 on travis-ci
2016-06-01 08:31:18 -07:00
Vinay Karanam
b61a0b5467
added test for git forward diff
2016-06-01 15:49:44 +05:30
Anthony Sottile
00bed9ea2f
Merge pull request #376 from pre-commit/dont_run_on_deleted_files
...
Don't run on deleted files. Resolves #374
2016-05-25 09:32:01 -07:00
Anthony Sottile
db97cf3329
Don't run on deleted files. Resolves #374
2016-05-25 08:42:02 -07:00
vinay karanam
81d7efa7bb
only consider forward diff in changed files
2016-05-25 14:44:59 +05:30
Anthony Sottile
6654fee5f9
Merge pull request #373 from pre-commit/not_using_pylint
...
We're not using pylint
2016-05-20 16:31:19 -07:00
Anthony Sottile
efe33ffe5c
We're not using pylint
2016-05-20 16:14:18 -07:00
Anthony Sottile
7c213f4482
v0.8.2
2016-05-20 15:28:16 -07:00
Anthony Sottile
efda3cdcd0
Merge pull request #372 from pre-commit/dont_crash_on_not_found_exe
...
Don't crash when an executable is not found
2016-05-20 15:03:53 -07:00
Anthony Sottile
5a6b6e81e9
Don't crash when an executable is not found
2016-05-20 13:32:33 -07:00
Anthony Sottile
cd03f78d08
v0.8.1
2016-05-17 09:17:11 -07:00
Anthony Sottile
99df3cb602
Merge pull request #370 from pre-commit/fix_already_using_rbenv_default_ruby_version
...
Fix already using rbenv + default ruby. Resolves #369 .
2016-05-17 09:15:51 -07:00
Anthony Sottile
e77bb8f3c3
Fix already using rbenv + default ruby. Resolves #369 .
2016-05-17 08:23:21 -07:00
Anthony Sottile
749b840695
Merge pull request #368 from trbs/fix_autoupdate_loghandler
...
Set up logging handler in autoupdate
2016-05-10 18:55:57 -07:00
trbs
8f73b321f5
reorder imports
2016-05-10 17:40:11 +02:00
trbs
9c64ce2caf
Set up logging handler in autoupdate
2016-05-10 13:47:06 +02:00
Anthony Sottile
da7e85c851
v0.8.0
2016-04-11 13:46:57 -07:00
Anthony Sottile
19bc0dc1b1
Merge pull request #355 from pre-commit/env_context
...
Factor out bash and activate files
2016-04-11 09:54:46 -07:00
Anthony Sottile
f8c82f99fd
Make the pcre check for a more compliant implementation
2016-04-07 21:33:10 -07:00
Anthony Sottile
82369fd99f
Add utility for parsing shebangs and resolving PATH
2016-04-03 22:54:46 -07:00
Anthony Sottile
a932315a15
Implement 'negate' to simplify pcre
2016-03-25 11:21:50 -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
Anthony Sottile
00a3a9a09b
Add envcontext helper
2016-03-25 11:21:50 -07:00
Anthony Sottile
495e21b24d
Merge pull request #358 from pre-commit/use_markers
...
Only require argparse / ordereddict under py26
2016-03-25 10:49:32 -07:00
Anthony Sottile
b61cf58237
Only require argparse / ordereddict under py26
2016-03-25 10:19:01 -07:00
Anthony Sottile
6cf2a9bde1
Merge pull request #356 from pre-commit/nocover_py3
...
Add a missing no-cover to increase coverage under py3
2016-03-21 15:22:22 -07:00
Anthony Sottile
f3802e7944
Add a missing no-cover to increase coverage under py3
2016-03-21 15:21:22 -07:00
Anthony Sottile
1f9f7379a1
No 'docs' toxenv
2016-03-21 10:58:01 -07:00
Anthony Sottile
eb6da4ae10
Improve --color help with argparse metavar
2016-03-08 16:34:09 -08:00
Anthony Sottile
77a1a29c12
Merge pull request #350 from brettmcintosh/help_text_fixes
...
Improve help text
2016-03-08 16:27:23 -08:00
Brett
4bb2bfea52
Add periods to help texts for all run commands.
2016-03-08 15:57:55 -08:00
Brett
e0f1a34319
Style: fixed line length
2016-03-08 15:51:28 -08:00
Brett
23a140aa30
Improve help text
...
Add choices to --color help text.
Fix typo in --allow-unstaged-config.
2016-03-08 11:31:21 -08:00
Anthony Sottile
3b28e8f807
Merge pull request #348 from pre-commit/use_pyterminalsize
...
Use pyterminalsize for terminal sizing
2016-02-22 12:00:39 -08:00
Anthony Sottile
710c24b868
Use pyterminalsize for terminal sizing
2016-02-21 21:07:08 -08:00
Anthony Sottile
00c853b10c
Merge pull request #347 from pre-commit/terminal_width_windows_round2
...
Fall back to tput when terminal size information is missing
2016-02-20 23:05:04 -08:00
Anthony Sottile
a9498d28a7
Fall back to tput when terminal size information is missing
2016-02-20 22:15:23 -08:00
Anthony Sottile
d699f64de8
Merge pull request #346 from pre-commit/terminal_width_windows
...
Support terminal width on windows. Resolves #199
2016-02-20 21:42:28 -08:00
Anthony Sottile
4f6e4aedee
Support terminal width on windows. Resolves #199
2016-02-20 20:55:39 -08:00
Anthony Sottile
139744582b
Merge branch 'revert_pip_workaround'
2016-02-07 14:51:41 -08:00
Anthony Sottile
d8d401e1a3
Revert "Merge pull request #342 from pre-commit/latest_virtualenv_breaks_tests"
...
This reverts commit 894862462d , reversing
changes made to b1e6063e12 .
2016-02-07 14:08:17 -08:00
Anthony Sottile
5168bb7ed3
Merge pull request #343 from pre-commit/testing_helpers
...
Make a helper for running pre-commit as a subprocess under test
2016-02-07 13:54:38 -08:00
Anthony Sottile
57638134e3
Make a helper for running pre-commit as a subprocess under test
2016-02-07 13:03:59 -08:00
Anthony Sottile
e2451109f7
norm slashes for windows
2016-02-07 13:03:28 -08:00
Anthony Sottile
72eeafe516
Merge branch 'lucasc_fix_subdir_files'
2016-02-07 12:35:36 -08:00
Anthony Sottile
982be73784
Add regression test for #339 .
2016-02-07 12:33:39 -08:00
Lucas Cimon
941149942d
Making it possible to invoke pre-commit run --files some.file from a subdirectory of the repository
2016-02-07 12:25:51 -08:00
Anthony Sottile
894862462d
Merge pull request #342 from pre-commit/latest_virtualenv_breaks_tests
...
Workaround pypa/pip#3461
2016-02-07 11:07:04 -08:00
Anthony Sottile
b0797b4c6e
Workaround pypa/pip#3461
2016-02-07 10:52:08 -08:00
Anthony Sottile
b1e6063e12
v0.7.6
2016-01-19 18:35:13 -08:00
Anthony Sottile
6adf242444
Merge pull request #335 from pre-commit/fix_for_latest_virtualenv
...
Fix pre-commit for latest virtualenv. Resolves #299 . Resolves #334
2016-01-19 18:34:18 -08:00
Anthony Sottile
706f5fbcb5
Add pin for setuptools under test since it breaks pypy3
2016-01-19 18:34:03 -08:00
Anthony Sottile
d58b945107
Fix pre-commit for latest virtualenv. Resolves #299 . Resolves #334
2016-01-19 18:08:20 -08:00
Anthony Sottile
1dbcfe3adb
v0.7.5
2016-01-15 13:40:10 -08:00
Anthony Sottile
aa6d64beab
Merge pull request #333 from bchess/include_symlinks
...
include checking symlinks
2016-01-15 13:39:21 -08:00
Benjamin Chess
a70abd04e7
include checking symlinks
2016-01-15 12:50:04 -08:00
Anthony Sottile
b00637beb5
v0.7.4
2016-01-12 16:10:11 -08:00
Anthony Sottile
13855c459b
Merge pull request #332 from pre-commit/fail_gracefully_on_unencodable_bytes_during_install
...
Fail gracefully on undecodable install output.
2016-01-12 16:06:32 -08:00
Anthony Sottile
2aaaddb5cc
Fail gracefully on undecodable install output.
2016-01-12 10:08:59 -08:00
Anthony Sottile
75aaadd4c4
v0.7.3
2015-12-22 19:33:34 -08:00
Anthony Sottile
fadeb509ad
Merge pull request #326 from pre-commit/fix_commit_am_322
...
Fix #322 by only removing git environment variables while cloning
2015-12-22 22:31:54 -05:00
Anthony Sottile
495fefd316
Fix #322 by only removing git environment variables while cloning
2015-12-22 19:10:08 -08:00
Anthony Sottile
c16479b94a
Merge pull request #325 from pre-commit/py35_appveyor
...
Use python3.5 in appveyor over py34
2015-12-22 18:13:17 -05:00
Anthony Sottile
a488424501
Use python3.5 in appveyor over py34
2015-12-22 14:40:30 -08:00
Anthony Sottile
df3319176d
v0.7.2
2015-12-22 13:07:05 -08:00
Anthony Sottile
7d234e2062
Merge pull request #324 from laurentsigal/allow_always_run
...
Allow to simply run a script once - no matter what the changes are
2015-12-22 16:05:32 -05:00
Laurent Sigal
12a08de17f
Merge pull request #1 from pre-commit/asottile_allow_always_run
...
Add regression test for `always_run` setting
2015-12-22 15:41:11 -05:00
Anthony Sottile
4f58f119b1
Add regression test for always_run setting
2015-12-22 12:33:17 -08:00
Laurent Sigal
5d160e1547
Fix tests
2015-12-22 19:47:22 +00:00
Laurent Sigal
a72ca3d68e
Less blocking logic
2015-12-22 19:06:31 +00:00
Laurent Sigal
5a08204b8d
Allow to simply run a script once - no matter what the changes are
2015-12-22 18:12:08 +00:00
Anthony Sottile
577d8a1dfa
v0.7.1
2015-12-19 09:04:25 -08:00
Anthony Sottile
638e16e521
Merge pull request #321 from pre-commit/support_submodules
...
Support pre-commit from inside submodules
2015-12-19 01:45:16 -05:00
Anthony Sottile
c3c98afe4f
Support pre-commit from inside submodules
2015-12-18 15:35:44 -08:00
Anthony Sottile
d6cf62532d
Merge pull request #320 from pre-commit/use_show_toplevel
...
Use rev-parse --show-toplevel
2015-12-18 11:33:51 -05:00
Anthony Sottile
3f02a66e37
Use rev-parse --show-toplevel
2015-12-18 08:04:26 -08:00
Anthony Sottile
0443ca24a2
v0.7.0
2015-12-13 12:02:54 -08:00
Anthony Sottile
72516288df
Merge pull request #319 from pre-commit/additional_deps_roll_forward
...
Make additional_dependencies rollforward safe
2015-12-10 17:40:16 -08:00
Anthony Sottile
b85a674026
Make additional_dependencies rollforward safe
2015-12-10 12:21:03 -08:00
Anthony Sottile
c1c3f3b571
Merge pull request #318 from pre-commit/modify_config_testing_helper
...
Add a helper to modify config files under test
2015-12-09 16:06:57 -08:00
Anthony Sottile
be4d0a2742
Add a helper to modify config files under test
2015-12-09 15:12:36 -08:00
Anthony Sottile
336939ef99
Merge pull request #317 from pre-commit/modify_config_testing_helper
...
Remove adding config file in one place
2015-12-09 14:42:07 -08:00
Anthony Sottile
f4d4679fd7
Remove adding config file in one place
2015-12-09 14:27:22 -08:00
Anthony Sottile
ef20046694
v0.6.8
2015-12-07 14:25:55 -08:00
Anthony Sottile
5e58796461
Merge pull request #316 from pre-commit/minimum_version_requirement
...
Add an option to require a specific pre-commit version
2015-12-07 08:08:52 -08:00
Anthony Sottile
ce307a16e0
Add an option to require a specific pre-commit version
2015-12-06 20:54:07 -08:00
Anthony Sottile
c24f78b1a5
Merge pull request #315 from pre-commit/allow_curly_braces_in_args
...
Allow '.format('-like strings in arguments. Resolves #314 .
2015-12-06 19:55:42 -08:00
Anthony Sottile
005cb868e0
Allow '.format('-like strings in arguments. Resolves #314 .
2015-12-06 18:50:57 -08:00
Anthony Sottile
97735a3883
Merge pull request #313 from pre-commit/travis_latest_git
...
Add python3.5, pypy3, and latest git to travis
2015-12-04 15:01:48 -08:00
Anthony Sottile
2df1dc9023
Add python3.5, pypy3, and latest git to travis
2015-12-04 14:30:15 -08:00
Anthony Sottile
d24a9374d2
We're a universal wheel
2015-12-02 11:47:11 -08:00
Anthony Sottile
7a7667fb1e
v0.6.7
2015-12-02 11:41:26 -08:00
Anthony Sottile
c8f0da00b8
Merge pull request #310 from pre-commit/fix_printing_of_non_ascii_in_error_handler
...
Fix printing of non-ascii in error handler
2015-12-01 14:16:53 -08:00
Anthony Sottile
2463738af4
Fix printing of non-ascii in error handler
2015-12-01 12:48:44 -08:00
Anthony Sottile
6b005cff0d
Merge pull request #306 from pre-commit/warn_on_hook_not_present_instead_of_keyerror
...
Produce a useful error message when hook id is not present. Resolves #194
2015-11-26 09:30:33 -08:00
Anthony Sottile
8c8bb2c077
Merge pull request #308 from pre-commit/contributing
...
Add CONTRIBUTING.md. Resolves #274
2015-11-25 23:39:56 -08:00
Anthony Sottile
e691d0f3a8
Add CONTRIBUTING.md. Resolves #274
2015-11-25 23:39:34 -08:00
Anthony Sottile
603bf159d9
Produce a useful error message when hook id is not present. Resolves #194
2015-11-25 23:13:49 -08:00
Anthony Sottile
512a6a2c64
Merge pull request #305 from jdb8/output-on-files-changed
...
Output a message when a hook fails due to file modification
2015-11-25 16:49:50 -08:00
Joe Bateson
91a547ed61
Output a message when a hook fails due to file modification
2015-11-25 16:27:47 -08:00
Anthony Sottile
956eefc90f
v0.6.6
2015-11-25 15:13:03 -08:00
Anthony Sottile
c6200329a2
Merge pull request #304 from pre-commit/use_newer_than_coverage_4
...
Use newer coverage. Resolves #273
2015-11-24 12:42:19 -08:00
Anthony Sottile
3e79898340
Use newer coverage. Resolves #273
2015-11-24 11:21:14 -08:00
Anthony Sottile
7cd1f534b2
Merge pull request #303 from pre-commit/pytest_path_easier
...
Use path.join
2015-11-24 06:35:48 -08:00
Anthony Sottile
0da258043f
Use path.join
2015-11-23 23:46:58 -08:00
Anthony Sottile
b73173fad0
Merge pull request #302 from pre-commit/fix_appveyor_and_windows
...
Fix appveyor and windows. Resolves #293
2015-11-23 23:09:26 -08:00
Anthony Sottile
248930f6dc
Fix appveyor and windows. Resolves #293
2015-11-23 22:28:57 -08:00
Anthony Sottile
1cdbe38b5f
Merge pull request #301 from pre-commit/fix_300
...
Fix issue #300 by removing GIT_WORK_TREE env variable
2015-11-23 16:40:46 -08:00
Anthony Sottile
d17063862b
Fix issue #300 by removing GIT_WORK_TREE env variable
2015-11-23 16:30:24 -08:00
Anthony Sottile
66e8ed5ad5
Remove unneeded format chunk
2015-11-23 15:04:55 -08:00
Anthony Sottile
b9bc6212c1
Fix some minor windows compatibility things
2015-11-23 14:11:59 -08:00
Anthony Sottile
de2ead13a1
Minor fixups
2015-11-23 12:19:02 -08:00
Anthony Sottile
7c8272da77
Merge pull request #295 from blarghmatey/install_dependencies
...
Added the additional_dependencies config parameter
2015-11-23 12:08:15 -08:00
Tobias Macey
0980887f57
Added new parameter to config schema
2015-11-20 20:24:01 -05:00
Anthony Sottile
3ac1041ce4
Merge pull request #298 from chriskuehl/fix-grep-flags-on-old-grep
...
Use a different test for grep flags to support old grep
2015-11-20 16:00:03 -08:00
Chris Kuehl
31bc019791
Use a different test for grep flags to support old grep
2015-11-20 15:00:14 -08:00
Tobias Macey
3581f94b32
Merge pull request #2 from pre-commit/asottile_install_dependencies
...
Fixups + make the tests work
2015-11-20 17:21:34 -05:00
Anthony Sottile
738c2ad7bd
Fixups + make the tests work
2015-11-20 13:52:20 -08:00
Tobias Macey
0ee4c3efa7
Added unit tests for dependencies
2015-11-20 15:45:34 -05:00
Tobias Macey
862426576f
Merge pull request #1 from pre-commit/slight_fixups
...
Some slight fixups
2015-11-19 22:36:28 -05:00
Tobias Macey
d6be9cdf7c
Added shell_escape to shell escape dependencies
2015-11-19 16:15:40 -05:00
Anthony Sottile
e80f203ba2
Merge pull request #297 from pre-commit/dont_run_flake8_twice
...
Don't run flake8 twice
2015-11-19 12:53:08 -08:00
Anthony Sottile
fb0d67bd87
Some slight fixups
2015-11-19 12:46:02 -08:00
Anthony Sottile
7dee804f3d
Don't run flake8 twice
2015-11-19 12:38:58 -08:00
Anthony Sottile
1a15ac48ce
Merge pull request #296 from pre-commit/dont_need_to_passenv_lang_any_more
...
Don't need passenv = LANG for tox
2015-11-19 12:33:21 -08:00
Anthony Sottile
a332f8f172
Don't need passenv = LANG for tox
2015-11-19 12:16:59 -08:00
Tobias Macey
3726f07a3f
Reformatted method signatures, fixed typos
2015-11-19 15:16:02 -05:00
Tobias Macey
06b3d91da0
Added the additional_dependencies config parameter
...
Added the ability to specify additional dependencies to be installed in
the pre-commit environment. Fixed broken tests.
2015-11-19 12:29:41 -05:00
Anthony Sottile
ef8b39df29
v0.6.5
2015-11-19 07:51:21 -08:00
Anthony Sottile
366f81f252
Upgrade virtualenv
2015-11-18 10:47:51 -08:00
Anthony Sottile
8ccd2816d1
Merge pull request #292 from pricematch/pcre_args
...
Allow args for pcre hook
2015-11-18 10:25:15 -08:00
Thierry Deo
f0c198f1ad
Allow args for pcre hook
2015-11-18 11:39:04 +01:00
Anthony Sottile
8a43a65557
v0.6.4
2015-11-13 10:55:16 -08:00
Anthony Sottile
a0636f1fab
Merge pull request #290 from pre-commit/fix_non_utf8_diffs
...
Fix hooks that apply non-utf8 diffs
2015-11-13 10:45:39 -08:00
Anthony Sottile
4b2f83d11e
Fix hooks that apply non-utf8 diffs
2015-11-13 10:08:37 -08:00
Anthony Sottile
a7e66abfdd
v0.6.3
2015-11-12 23:23:58 -08:00
Anthony Sottile
560d28e821
Merge pull request #287 from pre-commit/fail_modifying_hooks_285
...
Fail a hook if it makes modifications. Resolves #285
2015-11-12 16:14:40 -08:00
Anthony Sottile
a3f78bc165
Fail a hook if it makes modifications. Resolves #285
2015-11-12 15:16:55 -08:00
Anthony Sottile
67f6f812c4
Merge pull request #286 from pre-commit/remove_expected_return_value
...
Remove expected_return_value. Resolves #232
2015-11-12 14:24:17 -08:00
Anthony Sottile
67ad0d2d8e
Remove expected_return_value. Resolves #232
2015-11-12 13:50:29 -08:00
Anthony Sottile
3472f2b3ce
Add some missing no cover comments
2015-10-19 14:18:24 -07:00
Anthony Sottile
7d722714b7
v0.6.2
2015-10-14 10:14:10 -07:00
Anthony Sottile
1b6da9e2aa
Merge pull request #279 from magicmark/master
...
Changed to use --no-ri --no-rdoc
2015-10-14 10:12:38 -07:00
Mark Larah
1bda89458b
Changed to use --no-ri --no-rdoc
...
Changed to use --no-ri --no-rdoc to fix gem installs on OS X
2015-10-14 17:42:34 +01:00
Anthony Sottile
a8ddffb024
v0.6.1
2015-10-08 19:21:43 -07:00
Anthony Sottile
833a8caa85
Merge pull request #277 from barrysteyn/master
...
Fix bug - pushing on an empty changeset
2015-10-08 19:20:44 -07:00
Barry Steyn
354c02b0c1
Merge pull request #1 from pre-commit/barry-pr-277
...
Fixups and test for pre-commit/pre-commit#277
2015-10-08 19:15:36 -07:00
Anthony Sottile
6eb260f774
Fixups and test for pre-commit/pre-commit#277
2015-10-08 19:08:49 -07:00
Barry Steyn
e216b0b2cc
Fix bug - pushing on an empty changeset
2015-10-08 11:26:18 -07:00
Anthony Sottile
f71568aabb
Merge pull request #276 from barrysteyn/master
...
Corrected stages integration test
2015-10-07 21:35:08 -07:00
Barry Steyn
355ce61417
Corrected stages integration test
2015-10-06 08:46:22 -07:00
Anthony Sottile
72f03c141e
Merge pull request #275 from pre-commit/speed_up_tests_on_14_04
...
Some speedups for tests
2015-10-05 09:20:03 -07:00
Anthony Sottile
c7eefd48e4
Take advantage of the travis-ci cache feature
2015-10-05 08:49:07 -07:00
Anthony Sottile
7911f4b488
Speed up tests on 14.04 -- rvm has a binary for p551 and not p484
2015-10-05 08:40:51 -07:00
Anthony Sottile
223f0d4dfb
v0.6.0
2015-10-05 07:53:34 -07:00
Anthony Sottile
a8e43afb07
Merge pull request #271 from barrysteyn/master
...
Allow hooks to be applied to either pre-push or pre-commit
2015-10-05 07:48:48 -07:00
Barry Steyn
dd73ffd02f
Filtering of hooks for commit or push stages
2015-10-05 07:17:20 -07:00
Anthony Sottile
e3a22061c5
Temporarily limit coverage to <4 to fix py27 on windows
...
See https://bitbucket.org/ned/coveragepy/issues/420/coverage-40-hangs-indefinitely-on-python27
2015-10-04 21:03:17 -07:00
Anthony Sottile
4f7e03bdce
Merge pull request #272 from chriskuehl/gitignore-cache
...
gitignore: add .cache
2015-10-03 11:39:27 -07:00
Chris Kuehl
a79cce61d4
gitignore: add .cache
2015-10-02 16:21:35 -07:00
Anthony Sottile
a5cf7d09ca
Merge pull request #270 from pre-commit/tmpdir_factory_to_tempdir_factory
...
git grep -l tmpdir_factory | xargs sed -i 's/tmpdir_factory/tempdir_factory/g'
2015-10-01 11:16:58 -07:00
Anthony Sottile
1dfcf10036
git grep -l tmpdir_factory | xargs sed -i 's/tmpdir_factory/tempdir_factory/g'
2015-10-01 10:24:54 -07:00
Ken Struys
5791d84236
Limit us to pytest < 2.8 to fix build
2015-09-30 17:47:08 -07:00
Anthony Sottile
3eba6ff48a
Fix quoting in help
2015-09-30 17:15:02 -07:00
Anthony Sottile
857fd4ea72
v0.5.5
2015-09-04 08:48:58 -07:00
Anthony Sottile
a8e1eaa512
Fix shallow clone in travis-ci
2015-09-03 08:17:54 -07:00
Anthony Sottile
01ed16c31e
Merge pull request #262 from pricematch/use_ggrep_on_mac
...
Use ggrep instead of grep for pcre on mac os
2015-09-03 07:59:48 -07:00
Thierry Deo
7fd709ebd3
Use ggrep instead of grep for pcre on mac os
2015-09-03 11:44:39 +02:00
Anthony Sottile
3d90b094fc
Merge pull request #261 from pre-commit/no_tput_stderr
...
Supress stderr when TERM is unset
2015-08-21 13:24:10 -07:00
Anthony Sottile
7321108083
Supress stderr when TERM is unset
2015-08-19 12:02:28 -07:00
Anthony Sottile
4da968a5ea
Merge pull request #258 from meunierd/expanduser
...
Allow specifying python version relative to user's home directory.
2015-08-13 11:32:28 -07:00
Anthony Sottile
5e33213567
Merge pull request #260 from Lucas-C/master
...
Adding "--no-document" argument to "gem install" command for ruby-based hooks to fix issue with Cygwin
2015-08-13 09:27:43 -07:00
Devon Meunier
6a580a0c09
Allow specifying python version relative to user's home directory.
2015-08-13 12:03:26 -04:00
Lucas Cimon
b0791a22bd
Adding "--no-document" argument to "gem install" command for ruby-based hooks to fix issue with Cygwin
2015-08-13 16:35:20 +02:00
Anthony Sottile
a578afb310
Merge pull request #252 from chriskuehl/pre-commit_in_tox
...
Run this repo's pre-commit hooks in tox (and thus travis)
2015-07-29 00:50:00 -04:00
Chris Kuehl
01fd58c675
Fix import ordering in clientlib/validate_base
2015-07-29 00:41:56 -04:00
Chris Kuehl
b0248fe285
Run reorder-python-imports on Python2.7
2015-07-29 00:16:02 -04:00
Chris Kuehl
b025b6d55f
Run pre-commit hooks in tox (and thus travis)
2015-07-29 00:13:14 -04:00
Anthony Sottile
b07572e325
Merge pull request #251 from chriskuehl/rename-validators
...
Rename validate-{config,manifest} entrypoints
2015-07-26 09:17:46 -04:00
Anthony Sottile
ff5e6e5e89
Merge pull request #250 from chriskuehl/add_version_to_validators
...
Add --version option to validator binaries
2015-07-26 09:16:00 -04:00
Anthony Sottile
0f2dc402b1
Merge pull request #249 from chriskuehl/nonexec_pre-push_tmpl
...
Make `pre-push-tmpl` non-executable
2015-07-26 09:08:37 -04:00
Chris Kuehl
d567136e57
Rename validate-{config,manifest} entrypoints
2015-07-25 23:11:57 -07:00
Chris Kuehl
719d19699f
Add --version option to validator binaries
2015-07-25 22:47:46 -07:00
Chris Kuehl
ec6f6cc854
Make pre-push-tmpl non-executable
2015-07-25 22:33:38 -07:00
Anthony Sottile
e27c400b9d
v0.5.4
2015-07-24 07:47:18 -07:00
Anthony Sottile
5f5947d1c8
Merge pull request #248 from pre-commit/allow_arbitrary_bytes
...
Allow arbitrary bytes in output. Resolves #245
2015-07-24 06:38:47 -07:00
Anthony Sottile
66b1d39c6e
Allow arbitrary bytes in output. Resolves #245
2015-07-23 12:59:13 -07:00
Anthony Sottile
826aa4cebd
Merge pull request #247 from dkunitsk/master
...
fix for issue 246
2015-07-20 18:23:57 -07:00
Dmitriy Kunitskiy
72b61a81f9
fix for issue 246
2015-07-20 17:25:08 -07:00
Ken Struys
2c70476c63
Merge pull request #244 from pre-commit/allow_unstaged_config_for_all_files_242
...
Allow unstaged config when running against files or all-files. Resolves #242
2015-06-15 13:55:59 -07:00
Anthony Sottile
53cc2a64c9
Allow unstaged config when running against files or all-files. Resolves #242
2015-06-15 11:25:58 -07:00
Anthony Sottile
25ebea63ea
v0.5.3
2015-06-15 11:09:37 -07:00
Anthony Sottile
72c82f06e1
Merge pull request #243 from Lucas-C/master
...
Fixing bug with local hooks that disappeared during autoupdate
2015-06-14 14:34:29 -07:00
Lucas Cimon
3c02a24655
Fixing bug with local hooks that disappeared during autoupdate
2015-06-14 22:30:28 +02:00
Anthony Sottile
2a642b0619
v0.5.2
2015-06-02 15:46:06 -07:00
Anthony Sottile
d6ee26c19e
Merge pull request #239 from Lucas-C/master
...
Fix #238 : pre-commit autoupdate fails with local hooks
2015-06-02 15:46:00 -07:00
Lucas Cimon
b575cb510c
Fix #238 : pre-commit autoupdate fails with local hooks
2015-06-02 23:30:06 +02:00
Anthony Sottile
1c46446427
Bump hooks
2015-05-31 14:06:52 -07:00
Anthony Sottile
8dba3281d5
Merge pull request #236 from pre-commit/remove_old_files
...
Remove example_*, the docs do a better job.
2015-05-25 16:00:26 -07:00
Anthony Sottile
c8f19eb2e5
Remove example_*, the docs do a better job.
2015-05-25 15:50:51 -07:00
Anthony Sottile
f537b77808
v0.5.1
2015-05-23 20:34:58 -07:00
Anthony Sottile
b0a44462dd
Merge pull request #235 from pre-commit/hooks_dir_not_there_234
...
Handle when the hooks directory is not there on install. Resolves #234 .
2015-05-23 20:33:30 -07:00
Anthony Sottile
a97cb38b9a
Handle when the hooks directory is not there on install. Resolves #234 .
2015-05-23 20:02:42 -07:00
Anthony Sottile
b4bc5e4742
Merge pull request #233 from pre-commit/non_ascii_not_found_207
...
Don't UnicodeDecodeError on non-ascii not-found hooks. Resolves #207 .
2015-05-23 10:52:35 -07:00
Anthony Sottile
7905594215
Don't UnicodeDecodeError on non-ascii not-found hooks. Resolves #207 .
2015-05-22 21:55:08 -07:00
Anthony Sottile
20c546a7da
v0.5.0
2015-05-19 09:10:48 -07:00
Anthony Sottile
483c4a3d6c
Merge pull request #231 from pre-commit/no_defaults_in_config_227
...
Remove defaults from pre-commit config schema. Resolves #227
2015-05-18 15:14:29 -07:00
Anthony Sottile
039a7a5878
Remove defaults from pre-commit config schema. Resolves #227
2015-05-18 13:59:42 -07:00
Anthony Sottile
9515ca0637
Merge pull request #230 from pre-commit/better_multiple_language_support
...
Better multiple language support
2015-05-18 11:11:53 -07:00
Anthony Sottile
45d4a195ef
Environments are now installed to version-specific locations. Resolves #229
2015-05-16 18:51:14 -07:00
Anthony Sottile
154d918ff1
Add failing test for #229
2015-05-16 19:31:31 -04:00
Anthony Sottile
a875231be3
Fixup
2015-05-10 17:00:23 -07:00
Anthony Sottile
e094589b4a
Merge pull request #225 from caffodian/master
...
--allow-unstaged-config arg
2015-05-10 16:39:10 -07:00
caffodian
1c28ae10f7
Fix for #157 (with upstream changes)
...
Conflicts:
tests/commands/run_test.py
2015-05-10 16:25:05 -07:00
8geese
fdc2a889de
fix for #157
2015-05-10 15:48:21 -07:00
Anthony Sottile
24ce08129a
Merge pull request #226 from Lucas-C/master
...
Adding support for locally-defined hooks
2015-05-10 15:06:07 -07:00
Lucas Cimon
b68261c720
Adding support for locally-defined hooks
2015-05-10 23:57:34 +02:00
Anthony Sottile
d97ea30c4b
Minor style change for consistency sake
2015-05-07 17:06:33 -07:00
Anthony Sottile
17a9a8211d
Merge pull request #223 from Lucas-C/master
...
Preparatory work & clean-up for #219
2015-05-07 17:04:08 -07:00
LCM
7dd8c6ab4a
Preparatory work & clean-up for #219
...
clientlib/validate_config.py: moving "sha" field requirement out of JSON schema
commands/run.py: code simplification
runner.py: made .config a cached_property
2015-05-07 22:02:40 +02:00
Anthony Sottile
aec1c55f68
Merge pull request #222 from pre-commit/care_less_about_user_installs_in_tests_221
...
Care less about user installs during test. Resolves #221
2015-05-05 16:06:17 -07:00
Anthony Sottile
badb41457a
Care less about user installs during test. Resolves #221
2015-05-05 13:19:48 -07:00
Anthony Sottile
cdf726bbed
Make isolated environments more isolated under OSX and pyvenv. Resolves #217 .
2015-04-08 13:59:30 -07:00
Anthony Sottile
a76c902394
v0.4.4
2015-03-29 09:32:46 -07:00
Anthony Sottile
a0db694ab9
Merge pull request #216 from pre-commit/use_sys_executable_more_208
...
Use sys.executable when executing virtualenv. Resolves #208 .
2015-03-29 09:31:32 -07:00
Anthony Sottile
fbf86c775c
Use sys.executable when executing virtualenv. Resolves #208 .
2015-03-28 18:05:06 -07:00
Anthony Sottile
c4ff9d4988
v0.4.3
2015-03-25 10:30:05 -07:00
Anthony Sottile
c0f5467e25
Merge pull request #215 from pre-commit/reset_instead_of_checkout
...
Use reset instead of checkout when checking out hook repo
2015-03-25 10:29:41 -07:00
Anthony Sottile
36f1058444
Shotgun: try reset instead of checkout?
2015-03-25 09:39:23 -07:00
Anthony Sottile
9a18f6a38d
Update hooks
2015-03-08 12:57:03 -07:00
Anthony Sottile
4352d45451
v0.4.2
2015-02-27 15:54:45 -08:00
Ken Struys
6259df252b
Merge pull request #206 from pre-commit/xargs_derp_windows
...
Limit xargs line length. Resolves #205 .
2015-02-27 15:53:38 -08:00
Anthony Sottile
3bf852f46a
Limit xargs line length. Resolves #205 .
2015-02-27 15:15:42 -08:00
Anthony Sottile
52c2d9c35a
v0.4.1
2015-02-27 10:22:40 -08:00
Anthony Sottile
5e80b6a4ab
Merge pull request #204 from pre-commit/dont_rename_across_devices
...
Don't rename across devices. Resolves #203
2015-02-27 10:21:28 -08:00
Anthony Sottile
8faf96c1ad
Don't rename across devices. Resolves #203
2015-02-27 10:11:56 -08:00
Anthony Sottile
7b4470850e
v0.4.0
2015-02-27 08:05:35 -08:00
Anthony Sottile
4e09a55bf2
Update README.md
2015-02-27 07:48:28 -08:00
Anthony Sottile
e944bb60d2
Merge pull request #196 from pre-commit/windoze
...
Windows MVP
2015-02-27 07:36:45 -08:00
Anthony Sottile
161cff73b5
Add appveyor.yml
2015-02-27 00:48:05 -08:00
Anthony Sottile
143ed94500
Tests pass on windows
2015-02-27 00:48:01 -08:00
Anthony Sottile
56e5c4eb2d
Use sqlite3 instead of symlinks for managing repositories
2015-02-22 17:42:40 -08:00
Anthony Sottile
3babceb2ca
Merge pull request #195 from pre-commit/actually_print_when_installing
...
Actually print while installing
2015-02-22 16:28:17 -08:00
Anthony Sottile
02f0a1c434
Actually print while installing
2015-02-22 16:18:46 -08:00
Ken Struys
8f51bf2d0b
Merge pull request #193 from pre-commit/control_c_during_install_more_atmoic
...
Make ^C^C during install not cause subsequent runs to fail. Resolves #186 .
2015-02-08 20:59:39 -08:00
Anthony Sottile
1996a4c8a1
Make ^C^C during install not cause subsequent runs to fail. Resolves #186 .
2015-02-07 15:43:58 -08:00
Anthony Sottile
901c50632f
v0.3.6
2015-02-05 07:43:26 -08:00
Anthony Sottile
097b365ad6
Merge pull request #192 from pre-commit/quote_params
...
Quote args in venv'd languages
2015-02-04 19:21:51 -08:00
Anthony Sottile
f4d251fbbe
Quote args in venv'd languages
2015-02-04 19:01:56 -08:00
Anthony Sottile
9fc6a8bfed
Update CHANGELOG.md
2015-01-29 11:54:41 -08:00
Anthony Sottile
e6add0e4a2
v0.3.5
2015-01-15 08:48:19 -08:00
Anthony Sottile
e4ef34ea6b
Merge pull request #189 from pre-commit/pre_push
...
pre-push
2015-01-14 20:31:03 -08:00
Anthony Sottile
febb270afe
Bump magic numbers
2015-01-14 20:27:37 -08:00
Anthony Sottile
b7141f32c0
Add integration test demonstrating hooks
2015-01-14 20:19:49 -08:00
Anthony Sottile
931c69b3fa
Simplify a few things
2015-01-14 19:26:38 -08:00
dongweiming
b707cbba06
Make pre_commit also support pre-push hook
2015-01-14 19:26:37 -08:00
Anthony Sottile
d2b11a0c50
v0.3.4
2015-01-13 12:14:55 -08:00
Anthony Sottile
b6845208be
Merge pull request #185 from pre-commit/default_args_from_hooks_yaml
...
Default arguments from hooks.yaml
2015-01-13 12:13:49 -08:00
Anthony Sottile
26502dfd0b
Default arguments from hooks.yaml
2015-01-12 09:35:05 -08:00
Anthony Sottile
78c682a1d1
v0.3.3
2015-01-06 16:32:44 -08:00
Anthony Sottile
3387edbb12
Merge pull request #183 from bukzor/error-output-blovinates
...
improve output in error case
2015-01-06 16:31:31 -08:00
Buck Golemon
7bd1dd977d
improve output in error case
2015-01-06 16:25:46 -08:00
Anthony Sottile
645838cb51
Merge branch 'some_minor_tweaks'
2015-01-04 16:02:14 -08:00
Anthony Sottile
596e31fdee
Update some pre-commit hooks + some minor tweaks
2015-01-04 15:58:39 -08:00
Anthony Sottile
fd109b7745
reorder-python-imports
2015-01-04 15:49:19 -08:00
Anthony Sottile
86c99c6b87
sudo: false for travis
2014-12-20 19:44:11 -08:00
Anthony Sottile
6836e9187c
v0.3.2
2014-10-07 18:31:06 -07:00
Ken Struys
85aa1c428a
Merge pull request #177 from pre-commit/staged_files_only_176
...
Fix staged_files_only for color.diff always. Closes #176 .
2014-10-07 18:00:20 -07:00
Anthony Sottile
0479f78b4d
Fix staged_files_only for color.diff always. Closes #176 .
2014-10-07 17:40:20 -07:00
Anthony Sottile
b2cb0f6fe6
v0.3.1
2014-10-03 07:49:54 -07:00
Ken Struys
90c3b3c697
Merge pull request #175 from pre-commit/respect_cwd
...
Remove plumbum
2014-10-02 10:08:25 -07:00
Anthony Sottile
bbd2572b11
Remove plumbum
2014-10-02 06:59:37 -07:00
Anthony Sottile
5d9ba14841
Restore 79 character lines.
2014-10-01 17:18:44 -07:00
Anthony Sottile
7119acdc7d
Merge pull request #174 from bukzor/buck-172-error-clobbering
...
fix error clobbering
2014-10-01 16:17:10 -07:00
Buck Golemon
cdf0dae90d
fix error clobbering
2014-10-01 14:38:05 -07:00
Anthony Sottile
7d546c1f81
v0.3.0
2014-09-18 08:07:45 -07:00
Anthony Sottile
6497094ba0
Merge pull request #170 from pre-commit/filenames_as_arguments
...
Add ability to pass filenames as arguments.
2014-09-18 08:06:08 -07:00
Anthony Sottile
d8d7893cf7
Add ability to pass filenames as arguments.
2014-09-16 17:27:40 -07:00
Anthony Sottile
cfd86d5faa
v0.2.11
2014-09-05 14:17:06 -07:00
Ken Struys
5a7a487b7d
Merge pull request #168 from pre-commit/fix_width_thingy
...
Fix terminal width detection.
2014-09-05 14:16:12 -07:00
Anthony Sottile
fa9db4ec23
Fix terminal width detection.
2014-09-05 14:08:10 -07:00
Anthony Sottile
06830ab590
v0.2.10
2014-09-04 17:24:20 -07:00
Ken Struys
b089c74948
Merge pull request #166 from pre-commit/venv_python
...
Use virtualenv python from install-time for less virtualenv requirements at commit time.
2014-09-04 14:48:15 -07:00
Anthony Sottile
598e54640b
Use virtualenv python from install-time for less virtualenv requirements at commit time.
2014-09-04 10:19:20 -07:00
Ken Struys
a6112f44f2
Merge pull request #167 from pre-commit/npmrc_prefix_fix
...
Bump nodeenv in setup.py. Closes #165
2014-09-04 10:00:55 -07:00
Anthony Sottile
89205a3ac5
Bump nodeenv in setup.py. Closes #165
2014-09-04 08:54:24 -07:00
Anthony Sottile
59e753624e
Merge pull request #163 from wting/update_autoupdate_help_msg
...
Update autoupdate help message.
2014-09-02 18:54:13 -07:00
William Ting
f0352bf0be
Update autoupdate help message.
2014-09-02 18:46:18 -07:00
Anthony Sottile
bba24b6535
v0.2.9
2014-09-02 17:25:32 -07:00
Ken Struys
9ba93911a4
Merge pull request #162 from pre-commit/sys_stdout_write_py26
...
Use bytes for sys.stdout.write in PY2. Closes #161 .
2014-09-02 16:25:33 -07:00
Anthony Sottile
ecf82ed5e0
Use bytes for sys.stdout.write in PY2. Closes #161 .
2014-09-02 16:11:45 -07:00
Anthony Sottile
37d3dc0c82
Minor things to trigger a build.
2014-08-26 22:10:08 -07:00
Ken Struys
58b5845edd
Merge pull request #154 from struys/update_readme
...
updated readme to point to pre-commit site
2014-08-26 17:20:15 -07:00
Ken Struys
984e5f083d
updated readme to point to pre-commit site
2014-08-26 17:09:02 -07:00
Anthony Sottile
22ee10d4ad
Update .pre-commit-config.yaml
2014-08-22 12:33:54 -07:00
Anthony Sottile
3cac9489b3
Misc readme changes.
2014-08-14 15:34:31 -07:00
Anthony Sottile
1cfb9e76a3
Update changelog for 0.2.8
2014-08-13 15:57:22 -07:00
Anthony Sottile
0bc67673c4
v0.2.8
2014-08-13 15:39:04 -07:00
Ken Struys
f3b5886c8a
Merge pull request #153 from pre-commit/error_handler
...
Error handler
2014-08-13 11:34:39 -07:00
Anthony Sottile
32817f3958
Remove @entry
2014-08-13 11:02:40 -07:00
Anthony Sottile
9a017dcbe9
Add error_handler and use it.
2014-08-13 11:02:28 -07:00
Anthony Sottile
e3d29a897b
Make git errors throw FatalError
2014-08-13 10:43:32 -07:00
Anthony Sottile
74e878d96a
Merge pull request #152 from pre-commit/use_prebuilt_node
...
Don't use system node.
2014-08-13 10:42:55 -07:00
Anthony Sottile
e8a870dbbb
Don't use system node.
...
It's usually kind of buggy and interacts poorly with local installs.
2014-08-13 10:19:30 -07:00
Anthony Sottile
ed86307dc4
Merge pull request #151 from pre-commit/dont_dict_pre_commit_config
...
Allow multiple hooks with same id in .pre-commit-config.yaml
2014-08-01 08:22:23 -07:00
Anthony Sottile
e1429ec250
Add regression test for running multiple hooks with the same id.
2014-08-01 06:50:51 -07:00
Anthony Sottile
62f13aea56
Allow multiple hooks with same id in .pre-commit-config.yaml
2014-07-31 08:37:37 -07:00
Anthony Sottile
32b662c35f
v0.2.7
2014-07-28 14:24:55 -07:00
Anthony Sottile
38d3fab4ea
Do logging on install-hooks during install command.
2014-07-28 14:24:00 -07:00
Anthony Sottile
260a079ec2
v0.2.6
2014-07-28 11:13:36 -07:00
Anthony Sottile
50a7020d6e
Merge pull request #148 from pre-commit/run_as_dash_m
...
Runnable as python -m pre_commit
2014-07-23 19:49:33 -07:00
Anthony Sottile
ffe65ad275
Runnable as python -m pre_commit
2014-07-22 19:22:29 -07:00
Anthony Sottile
eb11ec2878
Merge pull request #147 from pre-commit/print_hook_id_on_failure
...
Print hookid on failure.
2014-07-22 06:59:07 -07:00
Anthony Sottile
e57f4737d4
Merge pull request #146 from pre-commit/sys_executable
...
Use sys.executable instead of python.
2014-07-22 06:58:26 -07:00
Anthony Sottile
5956b7ab46
Use sys.executable instead of python.
2014-07-22 06:57:07 -07:00
Anthony Sottile
b8c8120f2a
Print hookid on failure.
2014-07-22 06:54:48 -07:00
Anthony Sottile
196fd87df0
Update changelog
2014-07-22 06:46:24 -07:00
Anthony Sottile
dbae23538f
v0.2.5
2014-07-17 16:56:41 -07:00
Anthony Sottile
7c49c9f7d9
Default tput cols to 80.
2014-07-17 16:47:57 -07:00
Anthony Sottile
720db97c13
More accurate classifiers.
2014-07-13 16:58:03 -07:00
Anthony Sottile
bdefb77188
This is 0.2.4
2014-07-07 12:58:51 -07:00
Anthony Sottile
2bde79aa78
Merge pull request #139 from pre-commit/nodeenv_with_python_m
...
Use nodeenv with python -m
2014-07-07 12:53:52 -07:00
Anthony Sottile
f1575b4f7b
Use nodeenv with python -m
2014-07-07 12:43:50 -07:00
Anthony Sottile
3279eab616
Merge pull request #137 from pre-commit/install_before_running
...
Install hooks before attempting to run anything
2014-07-04 11:17:48 -07:00
Anthony Sottile
31a3b2ecb6
Install hooks before attempting to run anything
2014-07-04 11:11:21 -07:00
Anthony Sottile
76ffb3665a
Merge pull request #135 from pre-commit/install_hooks
...
Support --install-hooks as an option for pre-commit install
2014-07-03 19:38:56 -07:00
Anthony Sottile
9259eb96bb
Merge pull request #136 from pre-commit/test_command_line
...
Add tests for main.
2014-07-03 19:28:03 -07:00
Anthony Sottile
90648bc9ec
Add tests for main.
2014-07-03 19:19:55 -07:00
Anthony Sottile
bdbf1cfdb1
Support --install-hooks as an option for pre-commit install
2014-07-03 17:22:32 -07:00
Anthony Sottile
e2d2c17218
Merge pull request #134 from pre-commit/osx_tests
...
Make more tests pass in osx
2014-06-26 20:14:26 -07:00
Anthony Sottile
76b42056ee
More fixes for tests under osx
2014-06-26 20:00:48 -07:00
Anthony Sottile
5b007ad3a9
Version 0.2.3
2014-06-25 12:03:53 -07:00
Anthony Sottile
2e387e9bcb
Add a comment about why we exclude .git
2014-06-25 11:46:04 -07:00
Anthony Sottile
16b3a37047
Merge pull request #132 from pre-commit/freeze_ruby_building
...
Freeze ruby building
2014-06-23 16:17:12 -07:00
Anthony Sottile
df52667950
Fix writing tarfile with unicode filename in python 2.6
2014-06-23 14:30:26 -07:00
Anthony Sottile
bee56cd5bc
Use our archives instead of pulling from gits.
2014-06-23 13:50:40 -07:00
Anthony Sottile
8fee06b53e
resource_filename instead of trying to remember the right invocation to pkg_resources.
2014-06-23 13:25:37 -07:00
Anthony Sottile
c7b605fee2
Add the archive resources.
2014-06-23 13:06:14 -07:00
Anthony Sottile
a7133d6742
Add make archives scripts.
2014-06-23 13:04:47 -07:00
Anthony Sottile
aae98a0899
make a few more tests pass on osx.
2014-06-23 09:32:48 -07:00
Anthony Sottile
d02f41920f
Merge pull request #131 from pre-commit/non_utf8_diff
...
Treat diffs as maybe-not-utf8.
2014-06-23 07:50:34 -07:00
Anthony Sottile
e40a151e8c
Treat diffs as maybe-not-utf8.
2014-06-23 07:49:14 -07:00
Anthony Sottile
105af6fd58
Version 0.2.2
2014-06-22 14:38:10 -07:00
Ken Struys
b136679abb
Merge pull request #130 from pre-commit/filenames_with_spaces
...
Fix filenames with spaces in them.
2014-06-20 14:54:06 -07:00
Anthony Sottile
2ec7a34035
Fix filenames with spaces in them.
2014-06-20 10:20:02 -07:00
Anthony Sottile
061ac81682
Merge pull request #128 from pre-commit/update_readme
...
Update README.md
2014-06-19 15:49:52 -07:00
Anthony Sottile
8a4ff03a31
Update README.md
2014-06-19 15:48:10 -07:00
Anthony Sottile
30ad96d563
This is v0.2.1
2014-06-18 10:44:44 -07:00
Ken Struys
44330fbec8
Merge pull request #127 from pre-commit/allow_tags
...
Allow tags
2014-06-18 10:19:10 -07:00
Anthony Sottile
5d1ffcba75
Hashlib doesn't take unicode.
2014-06-18 07:37:17 -07:00
Anthony Sottile
a34f3fc7c9
Bump pre-commit config.
2014-06-18 07:37:17 -07:00
Anthony Sottile
4ec877628d
Use hash of repository name to allow tags.
2014-06-18 07:37:16 -07:00
Anthony Sottile
d2a349a0d8
Add failing test for tags.
2014-06-18 07:36:43 -07:00
Anthony Sottile
bcb1283267
Merge pull request #126 from pre-commit/readlink_woes
...
Use less readlink for osx peeps.
2014-06-17 20:22:33 -07:00
Anthony Sottile
f63fa850c9
Use less readlink for osx peeps.
2014-06-17 20:17:47 -07:00
Anthony Sottile
81c4298e5f
Use read-only git urls instead of git@ urls.
2014-06-17 19:50:02 -07:00
Ken Struys
832b8a84ee
Merge pull request #124 from pre-commit/which_path_do_we_have
...
Use either pre-commit or python -m pre_commit.main.
2014-06-17 17:15:50 -07:00
Anthony Sottile
5e8a6414cd
Use either pre-commit or python -m pre_commit.main.
2014-06-17 17:01:51 -07:00
Ken Struys
1045b76ca6
Update README.md
2014-06-17 16:46:30 -07:00
Anthony Sottile
fe29f334e8
This is 0.2.0
2014-06-17 10:00:05 -07:00
Anthony Sottile
942fe29709
Merge pull request #122 from pre-commit/aspy
...
Use aspy.yaml instead.
2014-06-17 09:41:02 -07:00
Anthony Sottile
5575dbae05
Use aspy.yaml instead.
2014-06-17 09:29:39 -07:00
Anthony Sottile
fe5e829ea4
Merge pull request #121 from pre-commit/packages_redux
...
Packages redux
2014-06-17 08:00:10 -07:00
Anthony Sottile
a984a02c84
Make ordereddict a direct dependency.
2014-06-17 06:59:13 -07:00
Anthony Sottile
203c554734
Use cached-property package.
2014-06-17 06:49:54 -07:00
Anthony Sottile
3a38cf4227
Merge pull request #120 from pre-commit/pcre
...
Add pcre type.
2014-06-16 21:19:49 -07:00
Anthony Sottile
2cfd2818b5
Add pcre type.
2014-06-16 21:11:00 -07:00
Anthony Sottile
38673941dc
Merge pull request #119 from pre-commit/migration_mode
...
Migration mode
2014-06-16 19:02:50 -07:00
Anthony Sottile
0cde0fdc48
Uninstall restores hooks.
2014-06-16 17:48:56 -07:00
Anthony Sottile
f4d16b9cdc
Combine install and uninstall.
2014-06-16 17:45:13 -07:00
Anthony Sottile
ac735e85e2
Make install -f / --overwrite work.
2014-06-16 17:41:16 -07:00
Anthony Sottile
1d8394afd0
Add first pass at migration mode.
2014-06-16 15:31:22 -07:00
Anthony Sottile
8f3f5c364a
Add test for failure condition.
2014-06-16 14:27:30 -07:00
Anthony Sottile
a744a6484e
git mv pre_commit/resources/pre-commit.sh pre_commit/resources/pre-commit-hook
2014-06-16 13:07:54 -07:00
Anthony Sottile
39470c98ca
Add expected behaviour for failure to find pre_commit.
2014-06-16 13:03:00 -07:00
Anthony Sottile
4b43fd8cdc
Add integration test for existing install behaviour
2014-06-16 12:53:26 -07:00
Anthony Sottile
332e8b480b
Merge pull request #117 from pre-commit/refactor_tests
...
Refactor tests
2014-06-15 19:03:50 -07:00
Anthony Sottile
85a76617c1
Refactor fixtures in tests.
2014-06-15 18:49:45 -07:00
Anthony Sottile
3baefd57e2
Convert autoupdate_test to use new fixture functions.
2014-06-15 17:00:35 -07:00
Anthony Sottile
047a933554
Move empty_git_dir out of pytest fixtures.
2014-06-15 15:47:11 -07:00
Anthony Sottile
7b1230df27
Use plumbum a bit better.
2014-06-15 14:19:05 -07:00
Anthony Sottile
92aa55f44e
Merge pull request #116 from pre-commit/version_command
...
Add -V / --version
2014-06-15 13:05:19 -07:00
Anthony Sottile
a7506061bd
Add -V / --version
2014-06-15 12:49:51 -07:00
Anthony Sottile
e47119d2a8
Merge pull request #115 from pre-commit/reorganize_commands
...
Reorganize commands
2014-06-14 09:38:17 -07:00
Anthony Sottile
cdfd3f7670
Move commands into their own files.
2014-06-13 19:52:14 -07:00
Anthony Sottile
111ed02938
git mv pre_commit/run.py pre_commit/main.py
2014-06-13 19:52:08 -07:00
Anthony Sottile
13c1b5295c
Merge pull request #113 from pre-commit/merge_conflict_detection
...
Fix merge conflict detection for cherry-pick conflict.
2014-06-13 08:06:57 -07:00
Anthony Sottile
c4e4c2dccb
Fix merge conflict detection for cherry-pick conflict.
2014-06-13 06:50:17 -07:00
Anthony Sottile
5a1accd697
This is v0.1.1
2014-06-11 18:19:00 -07:00
Anthony Sottile
87b3bf1e42
Merge pull request #110 from pre-commit/no_defaults_autoupdate
...
Don't add defaults when updating.
2014-06-11 18:04:19 -07:00
Anthony Sottile
1701756988
Don't add defaults when updating.
2014-06-11 17:41:45 -07:00