-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (69 loc) · 1.92 KB
/
linters.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: lint-code
on: [push, pull_request]
jobs:
formatter:
name: runner black code formatter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
version: "~= 24.0"
mypy-linter:
name: run mypy linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.12"
architecture: x64
- name: Install bashi
run: |
pip install .
- name: Install mypy
run: |
pip install mypy
- name: Run mypy on bashi source code
run: |
mypy src/bashi
- name: Run mypy on bashi-validate
run: |
mypy src/bashiValidate/validate.py
- name: Run mypy on example
run: |
mypy example
- name: Run mypy on efficiency.py
run: |
mypy example/efficiency.py
pylint-linter:
name: run pylint linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.12"
architecture: x64
- name: Install bashi
run: |
pip install .
- name: Install pylint
run: |
pip install pylint
- name: Run pylint on bashi source code
run: |
pylint src/bashi
- name: Run pylint on bashi-validate
run: |
pylint src/bashiValidate/validate.py
- name: Run pylint on example
run: |
pylint example/example.py
- name: Run pylint on efficiency.py
run: |
pylint example/efficiency.py