scripts: install and run pyupgrade (#31587)

old-commit-hash: 30afe2c231d18bbbf71c1e26d0458bf0acacdd2f
This commit is contained in:
Cameron Clough
2024-02-25 17:26:11 +00:00
committed by GitHub
parent 2c33be7a9c
commit c32539b23a
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
pip install --upgrade pyupgrade
git ls-files '*.py' | grep -v 'third_party/' | xargs pyupgrade --py311-plus