-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (37 loc) · 1.06 KB
/
lint-python.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
---
name: reviewdog
on: [pull_request]
jobs:
# Python formatting
# reporter: [github-pr-review, github-pr-check, github-check]
# filter_mode:
# added: added/modified lines
# diff_context: added/modified lines +/- N lines
# file: entire added / modified file
# nofilter: everything in repo
# level: [info,warning,error]
black:
name: runner / black
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v3
- name: Lint with Black
uses: psf/black@stable
flake8:
name: runner / flake8
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/[email protected]
- name: flake8 Lint
uses: reviewdog/action-flake8@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
filter_mode: added
level: warning