-
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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@db4abb16fbaabe386831e5addb7be1485d0d63d3 # v1.18.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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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@db4abb16fbaabe386831e5addb7be1485d0d63d3 # v1.18.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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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@db4abb16fbaabe386831e5addb7be1485d0d63d3 # v1.18.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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- 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@db4abb16fbaabe386831e5addb7be1485d0d63d3 # v1.18.0