Jakub J Jablonski
aba8a7597a
Add remove-em-dash hook
...
New fixer hook that replaces UTF-8 em-dashes (U+2014) with a plain
hyphen (-), modeled on the trailing-whitespace hook.
- pre_commit_hooks/remove_em_dash.py: the fixer (binary-safe, UTF-8 only)
- tests/remove_em_dash_test.py: full coverage of fix and no-op cases
- registered in setup.cfg, .pre-commit-hooks.yaml, and README.md
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 17:12:13 +02:00
anthony sottile
3411068391
py310+
...
Committed via https://github.com/asottile/all-repos
2025-10-09 17:44:52 -04:00
anthony sottile
3e8a870326
v6.0.0
2025-08-09 15:24:33 -04:00
Max R
5920aee766
Remove check-byte-order-marker and fix-encoding-pragma
2025-05-25 11:03:00 -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
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
2c9f875913
v4.6.0
2024-04-06 14:24:38 -04:00
Anthony Sottile
c4a0b88311
v4.5.0
2023-10-07 14:04:19 -04:00
Anthony Sottile
50a9fefe01
py38-plus
...
Committed via https://github.com/asottile/all-repos
2023-07-01 15:41:17 -04:00
pre-commit-ci[bot]
d05d4d7f17
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-06-06 03:14:40 +00:00
Anthony Sottile
f71fa2c1f9
v4.4.0
2022-11-23 14:36:02 -05:00
Anthony Sottile
360df52788
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:56 -05:00
pre-commit-ci[bot]
52dac67bb4
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-08-01 22:41:53 +00:00
Anthony Sottile
3298ddab3c
v4.3.0
2022-06-07 10:08:29 -07:00
Daniël van Noord
fc88f3fa49
Use tomli and tomllib instead of toml
2022-05-31 10:48:00 -04:00
Anthony Sottile
db7346d375
v4.2.0
2022-04-06 17:12:57 -04:00
Anthony Sottile
8f6152921e
drop python3.6 support
...
python 3.6 reached end of life on 2021-12-23
Committed via https://github.com/asottile/all-repos
2022-01-15 19:24:05 -05:00
Anthony Sottile
8fe62d14e0
v4.1.0
2021-12-23 23:47:17 -05: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
Anthony Sottile
8041dff63f
stricter mypy settings
...
Committed via https://github.com/asottile/all-repos
2021-06-21 19:15:42 -07:00
Anthony Sottile
38b88246cc
v4.0.1
2021-05-16 08:29:57 -07:00
Ville Skyttä
bb4eef160d
fix: check-shebang-scripts-are-executable entry point
...
Closes https://github.com/pre-commit/pre-commit-hooks/issues/602
2021-05-16 13:23:23 +03:00
Anthony Sottile
9cc62e1a63
v4.0.0
2021-05-14 20:17:35 -07:00
Ville Skyttä
391ae30a64
Add check for executability of scripts with shebangs
...
Closes https://github.com/pre-commit/pre-commit-hooks/issues/543
2021-05-04 18:45:43 -07:00
pre-commit-ci[bot]
c144e2b5b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2021-03-15 17:01:52 +00:00
Anthony Sottile
6e2418c552
v3.4.0
2020-12-15 13:46:40 -08:00
Mikhail Khvoinitsky
1e87d59a2d
New hook 'destroyed-symlinks' to detect symlinks which are changed to regular files with a content of a path which that symlink was pointing to; move zsplit to util
2020-11-18 11:45:05 -08:00
pre-commit-ci[bot]
e90998353b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2020-11-16 17:05:15 +00:00
Anthony Sottile
9136088a24
v3.3.0
2020-10-20 10:17:01 -07:00
Jeremiah Gowdy
d18bd5b75f
Add new byte-order-marker checker/fixer
2020-10-11 11:31:05 -07:00
Anthony Sottile
e1668fe86a
v3.2.0
2020-07-30 13:33:26 -07:00
Anthony Sottile
ebc15added
v3.1.0
2020-05-20 09:11:02 -07:00
Anthony Sottile
0e2c0f7502
v3.0.1
2020-05-16 18:08:51 -07:00
Anthony Sottile
66250ba9bf
v3.0.0
2020-05-14 16:24:40 -07:00
Anthony Sottile
e6d9355bf1
Remove additional remnants of flake8
2020-05-14 16:16:09 -07:00
Anthony Sottile
b9cc9d7761
remove flake8 and suggest pycqa/flake8
2020-05-14 16:00:29 -07:00
Anthony Sottile
a7f73434a6
Use covdefaults to handle coveragerc
2020-02-29 20:34:45 -08:00
Anthony Sottile
261fb3d66c
pre-commit-hooks: python3.6.1+
2020-02-24 10:57:26 -08:00
Anthony Sottile
f5c42a050b
pre-commit-hooks: python3.6+
2020-02-05 11:22:18 -08:00
Anthony Sottile
1057813c2f
v2.5.0
2020-02-04 16:10:28 -08:00
Anthony Sottile
0161422b4e
v2.4.0
2019-10-28 15:19:58 -07:00
Anthony Sottile
d6d3bd9460
v2.3.0
2019-08-05 10:33:34 -07:00
Semyon Maryasin
771156fb5e
Use toml rather than pytoml
...
Pytoml has an issue with error messages: https://github.com/avakar/pytoml/issues/41
2019-08-03 19:16:51 +01:00
Semyon Maryasin
ae70f7e3c7
Add check-toml hook
2019-08-03 19:16:51 +01:00
Anthony Sottile
0b70e285e3
v2.2.3
2019-05-16 09:58:18 -07:00
Anthony Sottile
e8e54f7f99
v2.2.2
2019-05-15 10:17:27 -07:00
Anthony Sottile
8bb09ce407
Combine mypy.ini and setup.cfg
...
Committed via https://github.com/asottile/all-repos
2019-05-08 14:30:29 -07:00
Anthony Sottile
9ee4347a8f
v2.2.1
2019-04-21 13:17:05 -07:00
Anthony Sottile
7905d805af
v2.2.0
2019-04-21 13:15:43 -07:00