-
-
Notifications
You must be signed in to change notification settings - Fork 26
32 lines (30 loc) · 971 Bytes
/
flake.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
name: cysignals-flake8
on:
pull_request:
types: [opened, synchronize]
push:
tags:
- '*'
jobs:
build:
runs-on: [ubuntu-latest]
steps:
- name: Set up the repository
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools Cython Sphinx flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src --count --select=E9,F63,F7,F82 --show-source --statistics
# The GitHub editor is 127 chars wide
flake8 src --count --max-line-length=127 --ignore=E265 --statistics