-
Notifications
You must be signed in to change notification settings - Fork 18
62 lines (55 loc) · 1.38 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Python Linter
# We use the Python Black linter.
on:
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- 'src/python/**'
- 'sdk/**'
- 'integration_tests/**'
jobs:
lint-src:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
version: "23.3.0"
src: "./src/python"
options: "--check --line-length=100"
lint-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
version: "23.3.0"
src: "./sdk"
options: "--check --line-length=100"
lint-integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
version: "23.3.0"
src: "./integration_tests"
options: "--check --line-length=100"
lint-scripts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
version: "23.3.0"
src: "./scripts"
options: "--check --line-length=100"
sort-imports:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: isort/isort-action@master
with:
isort-version: "5.12.0"
configuration: "-l 100 --profile black --check-only --diff"