-
Notifications
You must be signed in to change notification settings - Fork 15
48 lines (39 loc) · 996 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
44
45
46
47
48
name: Lint
on:
push:
branches:
- main
paths:
- "src/**"
- "tests/**"
- "pyproject.toml"
pull_request:
paths:
- "src/**"
- "tests/**"
- "pyproject.toml"
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[lint]
- name: Lint with black
run: black --check --diff src tests
- name: Lint with pylint
run: pylint src tests
# Removed because coroutines :(
# - name: Lint with mypy
# run: mypy src tests
- name: Lint with isort
run: isort --check-only --diff src tests