forked from thumbor/thumbor
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (43 loc) · 1.08 KB
/
lint.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
name: lint/formatter
on:
push:
pull_request:
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
flake8:
permissions:
contents: read # to fetch code (actions/checkout)
checks: write # to update checks
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- uses: actions/checkout@v4
- name: Install flake8
run: pip install flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
with:
checkName: 'flake8'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- uses: actions/checkout@v4
- name: Install isort
run: pip install isort
- name: Run isort
run: isort thumbor tests --profile black