Commit graph

1190 commits

Author SHA1 Message Date
Anthony Sottile
8fe62d14e0 v4.1.0 2021-12-23 23:47:17 -05:00
Anthony Sottile
714bb60f15
Merge pull request #704 from pre-commit/no_home
remove need for monkeypatching home
2021-12-20 23:15:37 -05:00
Anthony Sottile
91ee010907 remove need for monkeypatching home 2021-12-20 23:12:51 -05:00
Anthony Sottile
829867bbda
Merge pull request #674 from amartani/master
Fix check-added-large-files --enforce-all to correctly consider all git-lfs files.
2021-12-20 23:08:08 -05:00
Alex Martani
03a65ca357 Fix check-added-large-files --enforce-all to correctly consider all git-lfs files.
`git lfs status` only outputs status for files that are pending some git-lfs related operation.
For usage with --enforce-all, we need the list of all files that are tracked, which can be
achived by `git lfs ls-files`.

Fixes: https://github.com/pre-commit/pre-commit-hooks/issues/560
2021-12-20 23:04:50 -05:00
Anthony Sottile
b8d76787ff
Merge pull request #703 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-12-20 14:46:49 -05:00
pre-commit-ci[bot]
77a394ea41
[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:41:59 +00:00
Anthony Sottile
ccecdbda02
Merge pull request #689 from pujitm/master
Suggest usable call when executable files lack shebang on Windows
2021-12-07 16:03:45 -05:00
Pujit Mehrotra
16bc739ce7 Suggest usable call when exec files lack shebang on Windows
Resolves Issue #686
2021-12-07 15:53:54 -05:00
Anthony Sottile
083b0d8174
Merge pull request #692 from pre-commit/all-repos_autofix_gh-funding-default
Use org-default .github/FUNDING.yml
2021-11-23 11:53:14 -05:00
Anthony Sottile
60c1d8e12f Use org-default .github/FUNDING.yml
Committed via https://github.com/asottile/all-repos
2021-11-23 11:24:38 -05:00
Anthony Sottile
1630eb6c9e
Merge pull request #691 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-11-22 14:59:37 -05:00
pre-commit-ci[bot]
f4749f2fbb
[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:51:54 +00:00
Anthony Sottile
56b4a7e506
Merge pull request #682 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-11-01 15:57:24 -04:00
pre-commit-ci[bot]
bdcfb09762
[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:41 +00:00
Anthony Sottile
5b32186590
Merge pull request #678 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-25 12:02:58 -07:00
pre-commit-ci[bot]
d750167495
[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:58:08 +00:00
Anthony Sottile
67e52cbba5
Merge pull request #677 from pre-commit/all-repos_autofix_systemexit-main
replace exit(main()) with raise SystemExit(main())
2021-10-23 11:01:09 -07:00
Anthony Sottile
39ab2ed85e replace exit(main()) with raise SystemExit(main())
Committed via https://github.com/asottile/all-repos
2021-10-23 13:23:50 -04:00
Anthony Sottile
9fc352be79
Merge pull request #676 from janosh/typos
Fix typos
2021-10-23 10:18:01 -07:00
Janosh Riebesell
05a5297dbb fix typos 2021-10-23 13:11:40 -04:00
Anthony Sottile
8559bc5936
Merge pull request #673 from revolter/fix/inconsistent-descriptions
Fix inconsistent descriptions
2021-10-20 07:06:54 -07:00
Iulian Onofrei
d7932b63a3 Fix inconsistent descriptions wording 2021-10-20 17:03:53 +03:00
Iulian Onofrei
8a1d0fcbaa Fix inconsistent descriptions punctuations 2021-10-20 17:03:53 +03:00
Iulian Onofrei
2006a4d81b Fix inconsistent descriptions positions 2021-10-20 17:02:31 +03:00
Anthony Sottile
3191f30600
Merge pull request #672 from pre-commit/non-executable
remove unneeded executable bits
2021-10-18 17:09:44 -07:00
Anthony Sottile
61357d9b36
Merge pull request #671 from dennisroche/all-lower-case
all lower-case as requested
2021-10-18 17:08:26 -07:00
Anthony Sottile
81c6c559e0 remove unneeded executable bits 2021-10-18 20:00:49 -04:00
Dennis Roche
ccaa20da8d all lower-case as requested 2021-10-18 19:58:32 -04:00
Anthony Sottile
cb02c5b460
Merge pull request #662 from errsyn/worktree_adjust_gitdir
Adjust git dir when checking for merge in worktree
2021-10-15 15:41:28 -07:00
Ersin Yildirim
07af54024c Adjust git dir when checking for merge in worktree 2021-10-15 18:23:43 -04:00
Anthony Sottile
f9ba5db3f1
Merge pull request #667 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-11 12:11:23 -07:00
pre-commit-ci[bot]
262c12aba2 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2021-10-11 18:54:31 +00:00
pre-commit-ci[bot]
633151a3df
[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:54:03 +00:00
Anthony Sottile
1ca4ceba96
Merge pull request #661 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-10-04 12:57:48 -07:00
pre-commit-ci[bot]
3e75bdde12
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.28.0 → v2.29.0](https://github.com/asottile/pyupgrade/compare/v2.28.0...v2.29.0)
2021-10-04 18:54:32 +00:00
Anthony Sottile
e35ba8d463
Merge pull request #658 from ljmf00/add-txt-pkcs8-key
Add `PKCS #8` and OpenVPN static key blocks
2021-10-02 13:15:27 -07:00
Luís Ferreira
1b4e30e9aa
detect_private_key: add OpenVPN shared-secret key block
'OpenVPN Static key V1' label is often used by OpenVPN for providing hardening
security with additional HMAC signatures to the SSL/TLS handshake packets. They
are shared secrets and should be kept private.

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2021-10-02 20:53:39 +01:00
Luís Ferreira
ccdf02dfd4
detect_private_key: add textual version of PKCS #8 encrypted private keys
As described by RFC7468 and RFC5958, keys that are encoded using the "ENCRYPTED
PRIVATE KEY" label are described as private key information and therefore can
contain secrets, even though encrypted.

Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2021-10-02 20:53:33 +01:00
Anthony Sottile
cf059f0d24
Merge pull request #652 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-09-27 12:16:54 -07:00
pre-commit-ci[bot]
1822f1b60a
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.26.0 → v2.28.0](https://github.com/asottile/pyupgrade/compare/v2.26.0...v2.28.0)
2021-09-27 18:49:03 +00:00
Anthony Sottile
7eb0512c68
Merge pull request #648 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-09-13 12:40:35 -07:00
pre-commit-ci[bot]
5a8726e37c
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/pyupgrade: v2.25.0 → v2.26.0](https://github.com/asottile/pyupgrade/compare/v2.25.0...v2.26.0)
2021-09-13 18:50:52 +00:00
Anthony Sottile
96df60f75b
Merge pull request #644 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-08-30 15:03:41 -04:00
pre-commit-ci[bot]
3838410261
[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:37:07 +00:00
Anthony Sottile
8c2e6113ec
Merge pull request #643 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-08-23 14:33:10 -04:00
pre-commit-ci[bot]
332a621dd9
[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:39 +00:00
Anthony Sottile
25d61d4784
Merge pull request #619 from m-khvoinitsky/master
forbid-new-submodules fixes
2021-08-15 19:51:33 -04:00
Mikhail Khvoinitsky
10c5e4e166 forbid-new-submodules: fix triggering failure when only a submodule is committed (without any other file); support --from-ref and --to-ref; fixes #609 2021-08-13 21:32:08 +03:00
Anthony Sottile
f95941eae9
Merge pull request #639 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-08-09 11:50:39 -07:00