2.1.23.3. cli.pre_commit_scripts.check_encoding

Check the text encoding of specified files.

This script attempts to open one or more files with the specified encoding (default: UTF-8, other option: ASCII). It reports files that cannot be opened with the given encoding and returns an appropriate exit code. It is intended for use with pre-commit.

Functions

main([argv])

Command-line interface to check file encodings.