openpilot0/scripts/pyupgrade.sh

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