Module has dependency
MSALSearches for Python projects that have a dependency matching the specified package name. Places a SearchResult marker on all sources within a project with a matching dependency. A source belongs to the dependency manifest (pyproject.toml, Pipfile, setup.cfg, setup.py or requirements.txt) in its nearest enclosing directory. This recipe is intended to be used as a precondition for other recipes. For example this could be used to limit the application of a migration to only projects that use a specific version of a library. If the search result you want is instead just the dependency entry in the manifest, use the DependencyInsight recipe instead.
org. openrewrite. python. search. ModuleHasDependencyRequired
A glob pattern to match Python package names (PEP 503 normalized). Use * as a wildcard.
Optional
Match only dependencies with the specified resolved version. Node-style version selectors may be used. When a dependency is not resolved, only an exact == pin in its constraint is considered. All versions are searched by default.
If enabled, transitive dependencies will not be considered. All dependencies are searched by default.
mod run . --recipe= org. openrewrite. python. search. ModuleHasDependency \
-P packageNamePattern= 'django*'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.