scripts: install and run pyupgrade (#31587)
parent
be8e503a7d
commit
30afe2c231
1 changed files with 7 additions and 0 deletions
@ -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…
Reference in new issue