Skip to content

Instantly share code, notes, and snippets.

@jjwatt
Last active February 5, 2024 20:59
Show Gist options
  • Save jjwatt/7db629d45dd3703c962232882ff85f01 to your computer and use it in GitHub Desktop.
Save jjwatt/7db629d45dd3703c962232882ff85f01 to your computer and use it in GitHub Desktop.
replace pytest marks with pytest skips
#!/bin/sh
find -type f -name '*.py' -print0 \
| xargs -0 gawk -i inplace '/# @pytest.mark.github/ {$0=$0"\n @pytest.mark.skip(reason=\"deprecate gh marks\")"} 1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment