From 0406c9e675cba7dfc00f29f159b9b875556cbd27 Mon Sep 17 00:00:00 2001 From: Tom Aldcroft Date: Sun, 22 Sep 2019 12:19:54 -0400 Subject: [PATCH] Add GitHub action to check flake8 --- .github/workflows/flake8.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/flake8.yml diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml new file mode 100644 index 00000000..ca3f0de5 --- /dev/null +++ b/.github/workflows/flake8.yml @@ -0,0 +1,21 @@ +name: Python flake8 check + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up Python 3.6 + uses: actions/setup-python@v1 + with: + python-version: 3.6 + - name: Lint with flake8 + run: | + pip install flake8 + # Note: only check files in Ska.engarchive package. Many other files in + # the repo are not maintained as PEP8 compliant. + flake8 . --count --exclude=docs/conf.py --ignore=W504 --max-line-length=100 --show-source --statistics