forked from optuna/optuna
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 858 Bytes
/
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
name: Reviewdog
on:
pull_request:
types: [opened, review_requested]
jobs:
reviewdog:
runs-on: ubuntu-latest
if: github.event.action == 'opened' || github.event.requested_team.name == 'reviewdog'
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install
run: |
python -m pip install -U pip
pip install --progress-bar off -U .[checking]
- name: Output installed packages
run: |
pip freeze --all
- name: Output dependency tree
run: |
pip install pipdeptree
pipdeptree
- name: Apply formatters
run: |
black .
blackdoc .
isort .
- name: Reviewdog
uses: reviewdog/action-suggester@v1
with:
tool_name: formatters