2.1.23.3.1. cli.pre_commit_scripts.check_encoding.main
- cli.pre_commit_scripts.check_encoding.main(argv: Sequence[str] | None = None) int
Command-line interface to check file encodings.
Parses arguments, attempts to open each file using the specified encoding, and reports errors for files that cannot be opened.
- Parameters:
argv – Optional sequence of command-line arguments.
- Returns:
Exit code (0 if all files match encoding, up to 255 if errors).