snakeware

Python-based Linux distro for x86-64 and RPi
git clone git://squid-tech.com/snakeware.git
Log | Files | Refs | README

commit 01e7b2b0b2ba4b8bdc2d435a0f1057a14170b502
parent 80f80358d6bdb4a578234365099c0bae1bc2795e
Author: Josh Moore <jxm5210@g.rit.edu>
Date:   Sat, 30 May 2020 00:16:48 -0400

Merge pull request #4 from zaanposni/zaanposni/pythonlint

added python lint check on pr and master commit
Diffstat:
A.github/workflows/pythonlint.yml | 24++++++++++++++++++++++++
A.github/workflows/pythonlint_master.yml | 27+++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/pythonlint.yml b/.github/workflows/pythonlint.yml @@ -0,0 +1,24 @@ +name: PythonLint +on: [pull_request] + +jobs: + Flask8Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics diff --git a/.github/workflows/pythonlint_master.yml b/.github/workflows/pythonlint_master.yml @@ -0,0 +1,27 @@ +name: PythonLint +on: + push: + branches: + - master + +jobs: + Flask8Test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics + # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide + flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics