-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.03 KB
/
fast-checks.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
name: Fast Python checks
on:
workflow_dispatch:
push:
branches:
- develop
- master
pull_request:
jobs:
lint:
strategy:
fail-fast: false
name: Linting
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- run: pip install flake8
- name: Flake8 lint Python code
run: find scripts/ -type f -name '*.py' -exec flake8 --max-line-length=120 '{}' '+'
mypy:
strategy:
fail-fast: false
name: Type checking
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- run: pip install mypy types-requests
- name: Mypy type checking
run: mypy scripts/
misspell:
strategy:
fail-fast: false
name: Check misspellings
runs-on: ubuntu-latest
steps:
- name: Clone
uses: actions/checkout@v3
- name: Check misspellings
uses: codespell-project/actions-codespell@v2
with:
builtin: clear,rare
check_filenames: true
exclude_file: input_files/input.json