-
Notifications
You must be signed in to change notification settings - Fork 18
executable file
·55 lines (44 loc) · 1.29 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
name: Linting
on:
pull_request:
branches:
- develop
push:
branches:
- develop
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: ['3.10']
name: Python ${{ matrix.python-version }} Test Pop
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel
pip install pydocstyle black flake8 isort
pip install -e .[tests]
- name: sort imports
run: |
isort . --atomic --profile black
- name: check docstrings
run: |
pydocstyle --version
pydocstyle -e --count --convention=google --add-ignore=D400,D415,D212,D205,D417,D107 shakenbreak
- name: black
run: |
black --version
black --color shakenbreak
black --check --diff --color shakenbreak
- name: flake8
run: |
flake8 --version
flake8 --max-line-length 107 --color always --ignore=E121,E123,E126,E203,E226,E24,E704,W503,W504,F401,E203 shakenbreak