-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (37 loc) · 979 Bytes
/
flake8.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
name: Flake8
on:
pull_request:
types:
- opened
- synchronize
permissions:
# read on both needed for changes detection
pull-requests: read
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
flake8:
runs-on:
labels: [self-hosted, linux, x64]
group: light
steps:
- name: clone repo
uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- 'dags/**.py'
- name: install flake8
if: steps.changes.outputs.src == 'true'
run: pip install flake8
- name: run flake8
if: steps.changes.outputs.src == 'true'
uses: rbialon/flake8-annotations@v1
- name: run flake8
if: steps.changes.outputs.src == 'true'
run: |
flake8 --max-complexity 10 --ignore E501 dags