You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argument Clinic: add --dry-run and --diff options #155207
Argument Clinic can only rewrite files in place. To see what a change to a clinic block or to the generator itself produces, you have to let it modify the working tree and then look at git diff.
I propose two options, one of the ideas listed in #108643:
--dry-run -- parse everything as usual, but write nothing and list the files which would be changed.
--diff -- the same, but write a unified diff of the changes to the standard output, so that it can be reviewed or applied with patch -p0.
Both work with --make, so --dry-run --make --srcdir . tells whether any generated file is stale.
Activity
pythongh-155207: Fix the dry run tests on Windows
gh-155207: Add --dry-run and --diff options to Argument Clinic (GH-15…
[3.14] gh-155207: Add --dry-run and --diff options to Argument Clinic (…
pythongh-155207: Use the ExtraAssertions mixin in test_clinic
[3.13] gh-155207: Add --dry-run and --diff options to Argument Clinic (…
[3.14] pythongh-155207: Add --dry-run and --diff options to Argument …
pythongh-155207: Add --dry-run and --diff options to Argument Clinic (p…
[3.15] gh-155207: Add --dry-run and --diff options to Argument Clinic (…