xref: /aosp_15_r20/external/mesa3d/meson_to_hermetic/lint.sh (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1*61046927SAndroid Build Coastguard Worker#!/bin/bash
2*61046927SAndroid Build Coastguard Workerif [ ! -d "venv" ]; then
3*61046927SAndroid Build Coastguard Worker  echo "A venv folder was not found for this project, try running setup-venv.sh!"
4*61046927SAndroid Build Coastguard Worker  exit 0
5*61046927SAndroid Build Coastguard Workerfi
6*61046927SAndroid Build Coastguard Worker
7*61046927SAndroid Build Coastguard Workersource venv/bin/activate
8*61046927SAndroid Build Coastguard Worker# automatically fixes formatting that isn't considered 'unsafe'
9*61046927SAndroid Build Coastguard Workerruff format --config "format.quote-style = 'single'"
10*61046927SAndroid Build Coastguard Workerruff check # This is for unsafe fixes
11*61046927SAndroid Build Coastguard Workerecho "The above errors displays fixes that must be fixed manually."
12