GitHub repository: lyft/pyupgrade
Description: A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language.