mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-06-29 06:00:45 +00:00
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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| check_added_large_files.py | ||
| check_ast.py | ||
| check_builtin_literals.py | ||
| check_case_conflict.py | ||
| check_docstring_first.py | ||
| check_executables_have_shebangs.py | ||
| check_json.py | ||
| check_merge_conflict.py | ||
| check_shebang_scripts_are_executable.py | ||
| check_symlinks.py | ||
| check_toml.py | ||
| check_vcs_permalinks.py | ||
| check_xml.py | ||
| check_yaml.py | ||
| debug_statement_hook.py | ||
| destroyed_symlinks.py | ||
| detect_aws_credentials.py | ||
| detect_private_key.py | ||
| end_of_file_fixer.py | ||
| file_contents_sorter.py | ||
| fix_byte_order_marker.py | ||
| forbid_new_submodules.py | ||
| mixed_line_ending.py | ||
| no_commit_to_branch.py | ||
| pretty_format_json.py | ||
| remove_em_dash.py | ||
| removed.py | ||
| requirements_txt_fixer.py | ||
| sort_simple_yaml.py | ||
| string_fixer.py | ||
| tests_should_end_in_test.py | ||
| trailing_whitespace_fixer.py | ||
| util.py | ||