-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (32 loc) · 829 Bytes
/
lint.yaml
File metadata and controls
36 lines (32 loc) · 829 Bytes
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
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
path: code
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: debugging
run: dir -l code
- name: Install dependencies (flake8)
run: pip install -r code/.github/workflows/requirements.txt
- name: Lint
run: flake8 code/addon --max-line-length=130 --extend-exclude=code/addon/globalPlugins/MathCAT/yaml/*
- name: type check
uses: jakebailey/pyright-action@v1
with:
working-directory: code/addon/globalPlugins/MathCAT
python-version: 3.11
pylance-version: latest-release