mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[style] apply google python style guide (#4501)
This commit applies and enforces Google's python style for tests.
This commit is contained in:
@@ -56,6 +56,10 @@ install_packages_apt()
|
||||
|
||||
# add clang-format for pretty
|
||||
sudo apt-get -y install clang-format-6.0
|
||||
|
||||
# add yapf for pretty
|
||||
python3 -m pip install yapf || echo 'Failed to install python code formatter yapf. Install it manually if you need.'
|
||||
|
||||
}
|
||||
|
||||
install_packages_opkg()
|
||||
@@ -89,6 +93,9 @@ install_packages_brew()
|
||||
brew install llvm@6
|
||||
sudo ln -s "$(brew --prefix llvm@6)/bin/clang-format" /usr/local/bin/clang-format-6.0
|
||||
}
|
||||
|
||||
# add yapf for pretty
|
||||
python3 -m pip install yapf || echo 'Failed to install python code formatter yapf. Install it manually if you need.'
|
||||
}
|
||||
|
||||
install_packages_source()
|
||||
|
||||
Reference in New Issue
Block a user