Set up flake8-lazy in a repository — add its pre-commit hook (defaulting to --apply=set), run it once to rewrite files with __lazy_modules__ declarations, then verify nothing broke by running the test suite and an import smoke check. Use this whenever the user wants to set up, add, enable, adopt, or apply lazy imports, PEP 810, __lazy_modules__, or flake8-lazy in a project; wants to "lazify" a codebase, make imports lazy, cut import-time overhead, or speed up CLI/app startup — even if they don't name the tool explicitly.
2026-07-01