Find backoff decorators that need a hand migration
ProprietaryMark every backoff.on_exception and backoff.on_predicate, applied with an @ or called, that org.openrewrite.python.migrate.ReplaceBackoffDecoratorsWithTenacity declines to rewrite, with the reason, and record it in a data table. Every other use of backoff the migration leaves in place is marked too -- a member it has no copy of, such as backoff._sync patched in a test, a decorator referenced without being applied, and an import under if -- since the migration removes the dependency. This changes no behaviour; it scopes the hand migration left after the mechanical one. The markup it prints is not valid Python, so run it for a report rather than as part of a migration.
org. openrewrite. python. migrate. FindBackoffDecoratorsNotMigratedmod run . --recipe= org. openrewrite. python. migrate. FindBackoffDecoratorsNotMigratedInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.