-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (47 loc) · 1.17 KB
/
python-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
48
49
50
51
52
53
name: Python Linting
on:
pull_request_target:
types: [opened, synchronize, reopened]
push:
branches:
- develop
- main
- "release/**"
jobs:
run-linters:
name: Run linters
runs-on: ubuntu-22.04
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install Python dependencies
run: >
pip install
poetry==1.5.0
black==23.7.0
flake8==6.0.0
mypy==1.3.0
isort==5.12.0
sql==2022.4.0
pydantic==1.10.11
pydantic-yaml==0.11.2
types-requests==2.31.0.1
types-filelock==3.2.7
types-pyyaml==6.0.12.10
types-retry==0.9.9.4
- name: Run linters
uses: wearerequired/lint-action@v2
with:
# Enable linters
black: true
flake8: true
mypy: true
mypy_args: "app test_collections"
- name: Run isort
run: isort --check-only app test_collections