Skip to content

Commit

Permalink
Add GitHub action to check flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
taldcroft committed Sep 22, 2019
1 parent 1b79748 commit 0406c9e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 0406c9e

Please sign in to comment.