scripts: install and run pyupgrade (#31587)

pull/31554/head
Cameron Clough 1 year ago committed by GitHub
parent be8e503a7d
commit 30afe2c231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      scripts/pyupgrade.sh

@ -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
Loading…
Cancel
Save