-
Notifications
You must be signed in to change notification settings - Fork 341
50 lines (45 loc) · 1.14 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
name: flake8
on:
pull_request:
paths:
- 'src/rez/**.py'
- 'src/rezplugins/**.py'
- '.github/workflows/flake8.yaml'
- '!src/rez/utils/_version.py'
- '!src/rez/data/**'
- '!src/rez/vendor/**'
- '!src/rez/backport/**'
push:
paths:
- 'src/rez/**.py'
- 'src/rezplugins/**.py'
- '.github/workflows/flake8.yaml'
- '!src/rez/utils/_version.py'
- '!src/rez/data/**'
- '!src/rez/vendor/**'
- '!src/rez/backport/**'
jobs:
lint:
name: Run Linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install Dependencies
run: |
pip install flake8
- name: Run flake8
run: >-
find -name '*.py'
-not -path './rez/vendor/*'
-not -path './rez/data/*'
-not -path './rez/backport/*'
-not -path './build_utils/*'
-not -path './support/*'
-not -path './rezgui/*'
| xargs flake8
working-directory: src