-
Notifications
You must be signed in to change notification settings - Fork 5
60 lines (49 loc) · 1.47 KB
/
linting.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
name: Linting
on:
pull_request:
branches:
- '*' # all branches
push:
branches:
- '*' # all branches
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
python-version: ['3.8','3.9', '3.10']
name: Python ${{ matrix.python-version }} Test Pop
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel
pip install numpy
pip install pydocstyle
pip install black
pip install flake8
pip install isort
pip install -e .
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,D200,D212,D205,D417,D107 pytaser
- name: black
run: |
black --version
black --line-length 107 --color pytaser
black --line-length 107 --check --diff --color pytaser
- name: flake8
run: |
flake8 --version
flake8 --max-line-length 107 --color always --ignore=E121,E123,E126,E203,E226,E24,E704,W503,W504,F401,E203 pytaser