forked from daos-stack/daos
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.77 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Flake
# Always run on Pull Requests as then this check can be marked as required.
on:
pull_request:
jobs:
flake8-lint:
runs-on: ubuntu-22.04
name: Flake8 check
steps:
- name: Check out source repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: '3'
- name: Add parser
run: echo -n "::add-matcher::ci/daos-flake-matcher.json"
- name: Add whitespace parser
run: echo -n "::add-matcher::ci/daos-flakew-matcher.json"
- name: Add error parser
run: echo -n "::add-matcher::ci/daos-flakee-matcher.json"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
# W503 and W504 are related as they conflict. W503 is the preferred style and all code
# should be using it now.
ignore: 'W503'
exclude: 'src/control/vendor,src/client/pydaos/raw,src/vos/storage_estimator'
max-line-length: '100'
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
# W503 and W504 are related as they conflict. W503 is the preferred style and all code
# should be using it now.
ignore: 'F841,W503,E261'
exclude: 'src/control/vendor,src/client/pydaos/raw'
# Max line length is 100, and pylint will warn about lines longer than this, but some
# existing lines are longer so allow them here.
max-line-length: '133'
- name: flake8 Lint on SCons files.
uses: py-actions/flake8@v2
with:
ignore: 'F821,W503,F841'
max-line-length: '100'
args: '--filename */SConscript, SConstruct'