mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-04-08 14:03:54 +08:00
scripts: install and run pyupgrade (#31587)
This commit is contained in:
7
scripts/pyupgrade.sh
Executable file
7
scripts/pyupgrade.sh
Executable 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
|
||||
Reference in New Issue
Block a user