Commit graph

1136 commits

Author SHA1 Message Date
Sorin Sbarnea
c03c3986cd
Allow display of custom message when no-commit-to-branch fails
This change should make the failures of no-commit-to-branch easier
for people that might encounter it as maintainers can provide
information about allowed branch names. Current behavior just gives
an opaque error that is not very useful for people that do not have
a lot of knowledge about the project they are contributing to.
2024-11-04 09:42:48 +00:00
Anthony Sottile
e437b7ed51
Merge pull request #1104 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-10-28 21:23:35 -04:00
pre-commit-ci[bot]
475f1259da
[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
0beaecb1f7
Merge pull request #1095 from nemacysts/file-contents-sorter-mutex
Disallow --unique alongside --ignore-cases in file-contents-sorter
2024-10-26 15:07:36 -04:00
Luis Pérez
6883485395 Disallow --unique alongside --ignore-cases in file-contents-sorter
Closes #794: using these flags at the same time results in undefined
behavior - the final ordering is not guaranteed as --unique breaks
sorting due to passing the contents through a set.

NOTE: I added a newline before and after the mutex group to be
consistent with other usages of mutex groups (e.g.,
check_builtin_literals.py) in this repo.
2024-10-26 15:04:34 -04:00
Anthony Sottile
873992cf07
Merge pull request #1100 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-10-21 20:32:07 -04:00
pre-commit-ci[bot]
d7ef621445
[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:23 +00:00
Anthony Sottile
51c43c4b29
Merge pull request #1098 from pre-commit/all-repos_autofix_all-repos-manual
py39+
2024-10-11 19:51:10 -04:00
Anthony Sottile
a49f812a96 py39+
Committed via https://github.com/asottile/all-repos
2024-10-11 19:30:07 -04:00
Anthony Sottile
cef0300fd0 v5.0.0 2024-10-05 14:42:33 -04:00
Anthony Sottile
f47ab2f43c
Merge pull request #1049 from Jeffrey-Lim/main
Extend check for illegal Windows filenames
2024-10-05 14:19:40 -04:00
Jeffrey Lim
fd011242fd Extend check for illegal Windows filenames 2024-10-05 14:10:25 -04:00
Anthony Sottile
515e8b32ba
Merge pull request #1085 from AdrianDC/destroyed-symlinks
set stages for `destroyed-symlinks`
2024-10-05 14:04:09 -04:00
Adrian DC
c7d1e85f24 set stages for destroyed-symlinks
The 'destroyed-symlinks' hook runs upon 'commit-msg' hook,
however when used in 'git submodules', repository scope breaks

> pre_commit_hooks.util.CalledProcessError: (('git', 'status',
> '--porcelain=v2', '-z', '--', '.../COMMIT_EDITMSG'), 0, 128, '',
> b"fatal: .../COMMIT_EDITMSG: '...' is outside repository at '...'\n")
---

Signed-off-by: Adrian DC <radian.dc@gmail.com>
2024-10-05 14:01:50 -04:00
Anthony Sottile
5b5b46dc75
Merge pull request #1093 from pre-commit/non-deprecated-stages-names
update stages names to the non-deprecated names
2024-09-30 20:54:28 -04:00
Anthony Sottile
003dfa55c9 update stages names to the non-deprecated names 2024-09-30 20:49:24 -04:00
Anthony Sottile
ed714747d7
Merge pull request #1088 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-08-26 19:30:06 -04:00
Anthony Sottile
6553d02eb9 remove types-all 2024-08-26 19:24:42 -04:00
pre-commit-ci[bot]
6952eeb163
[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:38 +00:00
Anthony Sottile
429455474b
Merge pull request #1080 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-08-05 18:41:45 -04:00
pre-commit-ci[bot]
2bcdd3ccff
[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:35 +00:00
Anthony Sottile
c6144a0218
Merge pull request #1077 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-07-29 21:35:31 -04:00
pre-commit-ci[bot]
effeb7a743 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-07-29 22:00:04 +00:00
pre-commit-ci[bot]
282f7ae54d
[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:19 +00:00
Anthony Sottile
0c625349aa
Merge pull request #1073 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-07-22 19:39:48 -04:00
pre-commit-ci[bot]
9e7917b35e
[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
ae7cee538b
Merge pull request #1067 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-07-05 18:34:05 -04:00
pre-commit-ci[bot]
f895cde3c7
[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:16 +00:00
Anthony Sottile
9759ac692d
Merge pull request #1065 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-06-25 14:16:22 -04:00
pre-commit-ci[bot]
2b5af89b17
[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:05 +00:00
Anthony Sottile
6fc8413192
Merge pull request #1062 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-06-18 20:13:59 -04:00
pre-commit-ci[bot]
b6fb5ca711
[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:24 +00:00
Anthony Sottile
cf1d5bf3bc
Merge pull request #1060 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-06-13 10:27:57 -04:00
pre-commit-ci[bot]
bd4e487247
[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:59 +00:00
Anthony Sottile
0f946c1b47
Merge pull request #1059 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-06-03 21:46:13 -04:00
pre-commit-ci[bot]
b06e32ef41
[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:46:58 +00:00
Anthony Sottile
ee30c6ada9
Merge pull request #1056 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-05-27 17:46:09 -04:00
pre-commit-ci[bot]
a508c71a29
[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:23 +00:00
Anthony Sottile
d0293ebc40
Merge pull request #1051 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-04-29 20:54:26 -04:00
pre-commit-ci[bot]
fcbfb901ea
[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 22:03:55 +00:00
Anthony Sottile
528a309bbd
Merge pull request #1039 from amarvin/patch-1
Continues processing JSONs even if hook fails (fixes #1038)
2024-04-20 13:17:30 -04:00
Alex Marvin
25cdd5457b Continues processing JSONs even if hook fails (fixes #1038) 2024-04-20 13:15:14 -04:00
Anthony Sottile
8c24e2c2e6
Merge pull request #1044 from ericfrederich/more_illegal_windows_filenames
support more illegal Windows filenames
2024-04-20 12:47:34 -04:00
Eric L Frederich
714f1e57b1
support more illegal Windows filenames
See comments in #1031
2024-04-16 14:43:15 -04:00
Anthony Sottile
0d20f18212
Merge pull request #1031 from ericfrederich/check-illegal-windows-names
Add check for illegal Widnows names
2024-04-14 11:49:39 -04:00
Eric L Frederich
865409743e Add check for illegal Widnows names
Fixes #589
2024-04-14 11:47:45 -04:00
Anthony Sottile
b73acb198e
Merge pull request #850 from ericfrederich/fix-requirements-fixer
Stop pkg_resources from being added as well
2024-04-06 14:35:41 -04:00
Anthony Sottile
2c9f875913 v4.6.0 2024-04-06 14:24:38 -04:00
Anthony Sottile
d87a28b79d
Merge pull request #1033 from pre-commit/fix-encoding-pragma
Add deprecation messaging for `fix-encoding-pragma`
2024-04-06 14:12:02 -04:00
Max R
cef973f323 Add deprecation messaging for fix-encoding-pragma 2024-04-06 14:09:51 -04:00