-
Notifications
You must be signed in to change notification settings - Fork 7
34 lines (31 loc) · 1.15 KB
/
flake8.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This is a basic workflow that is manually triggered
name: Flake8
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
push:
branches:
- 'master'
release:
types: [published]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Checkout PyThea
uses: actions/checkout@master
- name: Install flake8
run: pip install flake8
- name: Python flake8 Lint
uses: py-actions/[email protected]
with:
args: "--select 'E101,E11,E111,E112,E113,E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133,E20,E211,E225,E231,E241,E242,E251,E252,E26,E265,E266,E27,E301,E302,E303,E304,E305,E306,E401,E402,E502,E701,E711,E712,E713,E714,E722,E731,E901,E902,F401,F822,F823,F841,W191,W291,W292,W293,W391,W601,W602,W603,W604,W605,W690'"
exclude: "__init__.py,PyThea/extensions/"
max-line-length: "170"
path: "PyThea"