precommit hooks module# Pre-commit hook to set the leftmost copyright year. Added in version 10.3. tests.hooks.copyright_fixer.check_file(path, year, files)[source]# Check for copyright string and fix it if necessary. Update copyright string for changed files. Parameters: path (Path) year (int) files (set(Path)) Return type: bool tests.hooks.copyright_fixer.get_patched_files()[source]# Return the PatchSet for the latest commit. tests.hooks.copyright_fixer.main(argv=None)[source]# Test that test filenames contains a valid copyright. Parameters: argv (Sequence[str] | None) Return type: int