Replace the --json pytest option with --json-report
ProprietaryReplace --json=FILE with --json-report --json-report-file=FILE, the options pytest-json-report takes, wherever pytest is run: in a command line that runs pytest or py.test, in addopts, and in an argument list that holds pytest or is passed to pytest.main. Plain text, YAML, TOML, Dockerfiles and Python sources keep their own syntax tree, so recipes that run afterwards still see them as such. A --json option of any other tool is left alone.
org. openrewrite. python. migrate. ReplacePytestJsonOptionmod run . --recipe= org. openrewrite. python. migrate. ReplacePytestJsonOptionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.