-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 901 Bytes
/
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
name: Lint
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- name: Checkout project
uses: actions/checkout@v3
- uses: ./.github/setup
with:
python-version: ${{ matrix.python-version }}
- name: Lint - install
run: poetry install --group lint
- name: Lint - ruff
if: always()
run: poetry run poe ruff
- name: Lint - black
if: always()
run: poetry run poe black --check
- name: Lint - mypy
if: always()
run: poetry run poe mypy
- name: Lint - pyright
if: always()
run: poetry run poe pyright