mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 17:17:46 +01:00
17 lines
294 B
Plaintext
17 lines
294 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
cd "$(dirname "$0")/.."
|
||
|
if [[ ! -e ".gcc-flags.json" ]]; then
|
||
|
pio init --ide atom
|
||
|
fi
|
||
|
if ! patch -R -p0 -s -f --dry-run <script/.neopixelbus.patch; then
|
||
|
patch -p0 < script/.neopixelbus.patch
|
||
|
fi
|
||
|
|
||
|
set -x
|
||
|
|
||
|
script/clang-tidy.py -c --fix
|
||
|
script/clang-format.py -c -i
|