Files
onepilot/scripts/pyupgrade.sh
Cameron Clough c32539b23a scripts: install and run pyupgrade (#31587)
old-commit-hash: 30afe2c231d18bbbf71c1e26d0458bf0acacdd2f
2024-02-25 09:26:11 -08:00

8 lines
138 B
Bash
Executable File

#!/usr/bin/env bash
set -e
pip install --upgrade pyupgrade
git ls-files '*.py' | grep -v 'third_party/' | xargs pyupgrade --py311-plus