-
Notifications
You must be signed in to change notification settings - Fork 287
59 lines (56 loc) · 2.4 KB
/
reviewdog.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
50
51
52
53
54
55
56
57
58
59
name: Reviewdog
on:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
bazel:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Bazel Buildifier
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- bazel
- uses: reviewdog/action-suggester@3d7fde6859623ad6174df5fd662677a0eb63310a # v1.11.0
black:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Python Black
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- black
- uses: reviewdog/action-suggester@3d7fde6859623ad6174df5fd662677a0eb63310a # v1.11.0
clang:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Clang Format
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- clang
- uses: reviewdog/action-suggester@3d7fde6859623ad6174df5fd662677a0eb63310a # v1.11.0
pyupgrade:
permissions:
checks: write # for reviewdog/action-suggester to report issues using checks
contents: read # for actions/checkout to fetch code
name: Python Pyupgrade
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- run: |
sudo python3 -m pip install -U numpy pip black pyupgrade
bazel run -s --verbose_failures --experimental_repo_remote_exec //tools/lint:lint -- pyupgrade
- uses: reviewdog/action-suggester@3d7fde6859623ad6174df5fd662677a0eb63310a # v1.11.0