Commit graph

1178 commits

Author SHA1 Message Date
Chris Rowe
b7435a3cc6
Merge branch 'catch-dotenv' of https://github.com/rwbot/pre-commit-hooks into catch-dotenv 2025-08-28 22:18:12 -06:00
Chris Rowe
423fd2344b
Add tests for error handling in env file operations and example creation for 100% cov 2025-08-28 22:14:59 -06:00
Chris
34d29579d8
Merge pull request #1 from rwbot/catch-dotenv 2025-08-28 21:42:22 -06:00
Chris Rowe
206d0a31e7
Refactor env_file fixture to dynamically locate repository root and improve test isolation 2025-08-28 21:38:58 -06:00
Chris Rowe
476396a2b9
add catch-dotenv hook to README and improve test clarity 2025-08-28 21:25:38 -06:00
Chris Rowe
3e8b0c9e1a
register catch-dotenv hook 2025-08-28 21:03:14 -06:00
Chris Rowe
c7f0dae9a4
Refactor catch_dotenv hook and tests for improved readability and consistency 2025-08-28 20:53:45 -06:00
Chris Rowe
989ac68f29
Improve error handling and clarity in catch_dotenv hook and tests 2025-08-28 20:29:12 -06:00
Chris Rowe
33746f52ec
Refactor catch_dotenv hook and tests for improved error handling and clarity 2025-08-28 20:09:17 -06:00
Chris Rowe
25a3d2ea3f
Add catch_dotenv hook and corresponding tests to manage .env files 2025-08-28 19:50:02 -06:00
anthony sottile
e5e94e8702 what year is it? 2025-08-09 15:27:15 -04:00
anthony sottile
3e8a870326 v6.0.0 2025-08-09 15:24:33 -04:00
Anthony Sottile
a8f86514f4
Merge pull request #1185 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-08-04 18:09:18 -04:00
pre-commit-ci[bot]
1acd88e5a4
[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:35 +00:00
Anthony Sottile
1450343284
Merge pull request #1182 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-07-24 11:21:42 +02:00
pre-commit-ci[bot]
b554d0acae
[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
582b9c66e0
Merge pull request #1174 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-06-24 15:37:13 -04:00
pre-commit-ci[bot]
84f8a9d27f
[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:23 +00:00
Anthony Sottile
ec458dc1db
Merge pull request #1166 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-06-02 17:30:00 -07:00
pre-commit-ci[bot]
1ea82dfbb9
[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:11 +00:00
Anthony Sottile
540cd64f14
Merge pull request #1164 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2025-05-27 21:36:07 -07:00
pre-commit-ci[bot]
60e8a23c68
[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:56 +00:00
Anthony Sottile
2a9bc76ca7
Merge pull request #1034 from pre-commit/remove-fix-encoding-pragma
Remove `check-byte-order-marker` and `fix-encoding-pragma`
2025-05-25 08:10:16 -07:00
Max R
5920aee766 Remove check-byte-order-marker and fix-encoding-pragma 2025-05-25 11:03:00 -04: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