-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (33 loc) · 896 Bytes
/
lint.yaml
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
name: Linters
on:
push:
branches: [ version-13, version-14, version-15 ]
pull_request:
branches: [ version-13, version-14, version-15 ]
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 2
- name: Prettify code
uses: creyD/[email protected]
with:
commit_message: "style: prettify code"
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install mypy
run: pip install mypy types-python-dateutil
- name: Run mypy
uses: sasanquaneuf/mypy-github-action@releases/v1
with:
checkName: 'mypy'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}