5.3.1.25.3. cli.pre_commit_scripts.check_encoding

Validate that files can be decoded with an extension-based text encoding.

The script reads each provided file using an encoding selected by file extension (ENCODING_MAP) and falls back to UTF-8 otherwise. It is intended for use with pre-commit.

Functions

main([argv])

Run the command-line interface for encoding validation.