forked from teast21/snpOracle
-
Notifications
You must be signed in to change notification settings - Fork 14
59 lines (53 loc) · 1.45 KB
/
lint.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
name: Python Linting
on:
pull_request:
push:
branches: [main, dev]
jobs:
#----------------------------------------------
# Cache Virtual Environment
#----------------------------------------------
venv-setup:
name: Cache Venv
uses: ./.github/workflows/cache_venv.yml
with:
command: |
python -m pip list
python --version
echo "Successfully setup venv"
#----------------------------------------------
# Run Black
#----------------------------------------------
black:
name: Black
needs: venv-setup
uses: ./.github/workflows/cache_venv.yml
with:
command: python -m black --check .
#----------------------------------------------
# Run Isort
#----------------------------------------------
isort:
name: isort
needs: venv-setup
uses: ./.github/workflows/cache_venv.yml
with:
command: python -m isort --check-only .
# #----------------------------------------------
# # Run Mypy
# #----------------------------------------------
# mypy:
# name: MyPy
# needs: venv-setup
# uses: ./.github/workflows/cache_venv.yml
# with:
# command: python -m mypy .
#----------------------------------------------
# Run Flake8
#----------------------------------------------
flake8:
name: Flake8
needs: venv-setup
uses: ./.github/workflows/cache_venv.yml
with:
command: python -m flake8 .