Now try to trigger pylint matcher
This commit is contained in:
8
.github/workflows/python.yml
vendored
8
.github/workflows/python.yml
vendored
@@ -22,14 +22,11 @@ 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 tockloader
|
pip install tockloader pylint
|
||||||
- name: Test code with pylint
|
- name: Test code with pylint
|
||||||
run: |
|
run: |
|
||||||
pip install pylint
|
|
||||||
./setup.sh
|
|
||||||
echo ::add-matcher::./.github/python_matcher.json
|
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:
|
yapf:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
@@ -45,6 +42,5 @@ jobs:
|
|||||||
pip install yapf tockloader
|
pip install yapf tockloader
|
||||||
- name: Test code formatting with yapf
|
- name: Test code formatting with yapf
|
||||||
run: |
|
run: |
|
||||||
./setup.sh
|
|
||||||
echo ::add-matcher::./.github/python_matcher.json
|
echo ::add-matcher::./.github/python_matcher.json
|
||||||
yapf --style=chromium --recursive --exclude third_party --diff .
|
yapf --style=chromium --recursive --exclude third_party --diff .
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ from __future__ import absolute_import
|
|||||||
from __future__ import division
|
from __future__ import division
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import colorama
|
||||||
import argparse
|
import argparse
|
||||||
import copy
|
import copy
|
||||||
import os
|
import os
|
||||||
@@ -25,7 +26,6 @@ import shutil
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import colorama
|
|
||||||
from tockloader.exceptions import TockLoaderException
|
from tockloader.exceptions import TockLoaderException
|
||||||
from tockloader import tab, tbfh, tockloader
|
from tockloader import tab, tbfh, tockloader
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user