pre-commit-hooks/pre_commit_hooks
Md Safiyat Reza 747ab07a55
Added a custom JSON encoder for json.dumps().
Added a custom JSON encoder based on json.JSONEncoder.
Changes from the default behaviour:
- Using `_make_iterencode` as the only `_iterencode`.
- Change `_make_iterencode`, setting `_indent` in `_iterencode_dict` to
  `None`.
- Use `py_encode_basestring` as the only `encoder`.

Also, updated the json writer to sort keys according to requested top_keys.

Signed-off-by: Md Safiyat Reza <safiyat@voereir.com>
2021-07-10 06:23:57 +05:30
..
__init__.py Initial commit. 2014-03-13 08:41:35 -07:00
check_added_large_files.py Fix #518, provide --enforce-all option to check_added_large_files 2020-09-27 15:15:37 -07:00
check_ast.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
check_builtin_literals.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
check_byte_order_marker.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
check_case_conflict.py check also directories in check_case_conflict 2021-04-04 09:27:44 -07:00
check_docstring_first.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
check_executables_have_shebangs.py Refactor check_executables_have_shebangs for git ls-files reuse 2021-05-04 18:45:42 -07:00
check_json.py Report duplicate keys in check_json 2021-02-18 13:53:57 -08:00
check_merge_conflict.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
check_shebang_scripts_are_executable.py Add check for executability of scripts with shebangs 2021-05-04 18:45:43 -07:00
check_symlinks.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
check_toml.py Support checking unicode TOML 2020-05-16 21:05:37 -04:00
check_vcs_permalinks.py Disallow any branch name in checks_vcs_permalinks 2021-04-06 18:19:19 -07:00
check_xml.py Remove type: ignore 2020-05-16 22:21:03 -04:00
check_yaml.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
debug_statement_hook.py Added pdbr into debug statements 2021-06-15 09:28:11 +02:00
destroyed_symlinks.py 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
detect_aws_credentials.py Allow arbitrarily encoded files to be checked with detect-aws-credentials 2020-02-18 10:24:17 -08:00
detect_private_key.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
end_of_file_fixer.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
file_contents_sorter.py Add --unique arg to file-contents-sorter 2020-10-25 12:18:09 -07:00
fix_byte_order_marker.py Add new byte-order-marker checker/fixer 2020-10-11 11:31:05 -07:00
fix_encoding_pragma.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
forbid_new_submodules.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
mixed_line_ending.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
no_commit_to_branch.py no-commit-to-branch: Default to both master and main 2021-03-04 15:59:25 +00:00
pretty_format_json.py Added a custom JSON encoder for json.dumps(). 2021-07-10 06:23:57 +05:30
removed.py hotfix: the user may be define an extra arguments for a removed hook 2020-05-18 19:57:49 -07:00
requirements_txt_fixer.py requirements-txt-fixer now supports indents before comments 2021-01-17 21:15:05 +02:00
sort_simple_yaml.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
string_fixer.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
tests_should_end_in_test.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
trailing_whitespace_fixer.py pre-commit-hooks: python3.6+ 2020-02-05 11:22:18 -08:00
util.py 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