Skip to content
Snippets Groups Projects
Unverified Commit fb945b31 authored by Jean-Michel Picod's avatar Jean-Michel Picod Committed by GitHub
Browse files

Merge branch 'master' into tock-1.5

parents 0a38339b d140e5a9
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,8 @@ jobs: ...@@ -39,8 +39,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade pip setuptools wheel
pip install yapf tockloader pip install 'yapf>=0.30.0' tockloader
- name: Test code formatting with yapf - name: Test code formatting with yapf
run: | run: |
echo ::add-matcher::./.github/python_matcher.json echo ::add-matcher::./.github/python_matcher.json
yapf --style=chromium --recursive --exclude third_party --diff . yapf --style=yapf --recursive --exclude third_party --diff .
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
// Try to make VSCode formating as close as possible to the Google style. // Try to make VSCode formating as close as possible to the Google style.
"python.formatting.provider": "yapf", "python.formatting.provider": "yapf",
"python.formatting.yapfArgs": [ "python.formatting.yapfArgs": [
"--style=chromium" "--style=yapf"
], ],
"python.linting.enabled": true, "python.linting.enabled": true,
"python.linting.lintOnSave": true, "python.linting.lintOnSave": true,
......
...@@ -291,8 +291,8 @@ class OpenSKInstaller: ...@@ -291,8 +291,8 @@ class OpenSKInstaller:
# empty value. # empty value.
target_toolchain.append("") target_toolchain.append("")
current_version = self.checked_command_output(["rustc", "--version"]) current_version = self.checked_command_output(["rustc", "--version"])
if not all((target_toolchain[0] in current_version, if not (target_toolchain[0] in current_version and
target_toolchain[1] in current_version)): target_toolchain[1] in current_version):
info("Updating rust toolchain to {}".format("-".join(target_toolchain))) info("Updating rust toolchain to {}".format("-".join(target_toolchain)))
# Need to update # Need to update
self.checked_command_output( self.checked_command_output(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment