-
-
Notifications
You must be signed in to change notification settings - Fork 252
45 lines (41 loc) · 1.25 KB
/
lint.yaml
File metadata and controls
45 lines (41 loc) · 1.25 KB
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
name: Linters
on:
push:
pull_request:
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black codespell
- name: Check with black
run: black --check .
codespell:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: codespell-project/actions-codespell@master
with:
skip: "*.po,encoding_latin1.py,test_repl.py"
ignore_words_list: ba,te,deltion,dedent,dedented,assertIn
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy
pip install -r requirements.txt
pip install urwid twisted watchdog "jedi >=0.16" babel "sphinx >=1.5" numpy
pip install types-backports types-requests types-setuptools types-toml types-pygments
- name: Check with mypy
# for now only run on a few files to avoid slipping backward
run: mypy