-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (36 loc) · 1.02 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
---
name: Lint
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
# checkout repo under $GITHUB_WORKSPACE
- name: Checkout action
uses: actions/checkout@v2
# install latest python version
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Lint with flake8
run: |
pip install flake8
flake8 --exclude ./restart/__init__.py
- name: Lint with mypy
run: |
pip install mypy
mypy --namespace-packages $(find ./restart -name "*.py")
- name: Lint with bandit
run: |
pip install bandit
bandit $(find ./restart -name "*.py")
- name: Lint with pydocstyle
run: |
pip install pydocstyle
pydocstyle --convention=google $(find ./restart/ -name "*.py")
# temporarily removing for now until we finalize config structure
# - name: Lint with yamllint
# run: |
# pip install yamllint
# yamllint $(find ./restart/ -name "*.yaml")