Commit graph

1160 commits

Author SHA1 Message Date
Edoardo Bezzeccheri
04de4f8042 Using first line to determine EOL 2025-05-07 16:05:09 +00:00
Edoardo Bezzeccheri
647959c4b4 Revert "Edge case with mixed endings"
This reverts commit 203735ecf7.
2025-05-07 15:58:17 +00:00
Edoardo Bezzeccheri
203735ecf7 Edge case with mixed endings
Added case for which the file has mixed line endings.
In this case, default into using LF
for end of file line.
2025-05-07 09:00:23 +00:00
Edoardo Bezzeccheri
c881808ed6 Implementation to pass test 2025-05-07 08:52:52 +00:00
Edoardo Bezzeccheri
c21246f34f Added test to reproduce case
Case is for file using CRLF endings
2025-05-07 08:45:10 +00:00
Edoardo Bezzeccheri
068f38ba74 Refactored literals 2025-05-07 08:44:27 +00:00
Anthony Sottile
5c514f85cc
Merge pull request #1158 from pre-commit/rm-master
remove master references from tests
2025-04-19 11:48:46 -04:00
Anthony Sottile
0a0af6796b remove master references from tests 2025-04-19 11:46:43 -04:00
Anthony Sottile
6db05e22aa
Merge pull request #1153 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-03-31 15:54:55 -04:00
pre-commit-ci[bot]
09121de963 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-03-31 19:44:27 +00:00
pre-commit-ci[bot]
b4b46a81df
[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:55 +00:00
Anthony Sottile
31903eabdb
Merge pull request #1136 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-02-17 16:20:31 -05:00
pre-commit-ci[bot]
16bd239a69
[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
e505130ab7
Merge pull request #1134 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-02-12 09:34:10 -05:00
pre-commit-ci[bot]
e521ab251d
[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:02 +00:00
Anthony Sottile
bf885a482a
Merge pull request #1131 from pre-commit/all-repos_autofix_all-repos-sed
upgrade asottile/workflows
2025-01-30 14:59:46 -05:00
Anthony Sottile
6a28b51c01 upgrade asottile/workflows
Committed via https://github.com/asottile/all-repos
2025-01-30 14:58:58 -05:00
Anthony Sottile
73c57635b1
Merge pull request #1129 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-01-20 20:43:12 -05:00
pre-commit-ci[bot]
78084c34eb
[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:29:46 +00:00
Anthony Sottile
c0d5684142
Merge pull request #1123 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-01-07 20:21:25 -05:00
pre-commit-ci[bot]
afea58a65f
[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:22 +00:00
Anthony Sottile
ccf815675d
Merge pull request #1115 from homebysix/patch-1
Fix grammar of check-shebang-scripts error
2024-12-24 12:48:47 -05:00
Anthony Sottile
318854d2b5
Merge pull request #1120 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2024-12-23 21:10:00 -05:00
pre-commit-ci[bot]
385434feb0
[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:27 +00:00
Elliot Jordan
4c9457c08b
Fix grammar of check-shebang-scripts error 2024-12-18 19:58:24 -08: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