From dca2e2701bbca76ecec41c663703004f52a79e55 Mon Sep 17 00:00:00 2001 From: LBlend Date: Thu, 18 Mar 2021 03:23:41 +0100 Subject: [PATCH] created flake8 python linting workflow --- .github/workflows/PythonLint.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/PythonLint.yml diff --git a/.github/workflows/PythonLint.yml b/.github/workflows/PythonLint.yml new file mode 100644 index 0000000..fb39754 --- /dev/null +++ b/.github/workflows/PythonLint.yml @@ -0,0 +1,21 @@ +name: Python Linting + +on: [push] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install -U pip + pip install -r requirements.txt + - name: Flake8 Lint + run: | + pip install flake8 + flake8 --max-line-length=120 --show-source