forked from gijzelaerr/python-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (24 loc) · 714 Bytes
/
flake8.yml
File metadata and controls
24 lines (24 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Flake8
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Debian packages
run: |
sudo apt-get update -qq
sudo apt-get install -y python3-pip
- name: Install dependencies
run: |
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install flake8
- name: Lint with flake8
run: |
flake8 --count --select=E9,F63,F7,F82 --show-source --statistics snap7 test
flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics snap7 test