From 7a86f80e2bedcd34f715e670e9f809c1727aede2 Mon Sep 17 00:00:00 2001 From: Jean-Michel Picod <jmichel@google.com> Date: Thu, 27 Feb 2020 19:16:45 +0100 Subject: [PATCH] Now try to trigger pylint matcher --- .github/workflows/python.yml | 8 ++------ deploy.py | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 3ac7d6d..19103c2 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -22,14 +22,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools wheel - pip install tockloader + pip install tockloader pylint - name: Test code with pylint run: | - pip install pylint - ./setup.sh echo ::add-matcher::./.github/python_matcher.json - find . -type f -name '*.py' -exec echo PYLINT:\{\} \; -exec pylint --rcfile=.pylintrc --score=n \{\} \; - #find . ! -path "./third_party/*" -type f -name '*.py' -exec echo PYLINT:\{\} \; -exec pylint --rcfile=.pylintrc --score=n \{\} \; + find . ! -path "./third_party/*" -type f -name '*.py' -exec echo PYLINT:\{\} \; -exec pylint --rcfile=.pylintrc --score=n \{\} \; yapf: runs-on: ubuntu-18.04 @@ -45,6 +42,5 @@ jobs: pip install yapf tockloader - name: Test code formatting with yapf run: | - ./setup.sh echo ::add-matcher::./.github/python_matcher.json yapf --style=chromium --recursive --exclude third_party --diff . diff --git a/deploy.py b/deploy.py index 5419cdb..da835d5 100755 --- a/deploy.py +++ b/deploy.py @@ -18,6 +18,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import print_function +import colorama import argparse import copy import os @@ -25,14 +26,13 @@ import shutil import subprocess import sys -import colorama from tockloader.exceptions import TockLoaderException from tockloader import tab, tbfh, tockloader # This structure allows us in the future to also support out-of-tree boards. SUPPORTED_BOARDS = { "nrf52840_dk": "third_party/tock/boards/nordic/nrf52840dk", - "nrf52840_dongle":"third_party/tock/boards/nordic/nrf52840_dongle" + "nrf52840_dongle": "third_party/tock/boards/nordic/nrf52840_dongle" } # The STACK_SIZE value below must match the one used in the linker script -- GitLab