forked from AcademySoftwareFoundation/rez
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.16 KB
/
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
47
48
49
50
51
name: flake8
on:
pull_request:
paths-ignore:
- '.github/docker/**'
- '.github/workflows/windows-docker-image.yaml'
- 'src/rez/utils/_version.py'
- 'wiki/**'
- 'metrics/**'
- 'data/**'
- '**.md'
push:
paths-ignore:
- '.github/docker/**'
- '.github/workflows/windows-docker-image.yaml'
- 'src/rez/utils/_version.py'
- 'wiki/**'
- 'metrics/**'
- 'data/**'
- '**.md'
jobs:
lint:
name: Run Linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install flake8
- name: Run flake8
run: >-
find -name '*.py'
-not -path './build_utils/*'
-not -path './rez/vendor/*'
-not -path './rez/data/*'
-not -path './support/*'
-not -path './rez/backport/*'
-not -path './rezgui/*'
| xargs flake8 --ignore
E241,E265,E266,E741,E742,E722,F821,W503
working-directory: src