forked from zeljko00/iot-gateway-app
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.2 KB
/
code-quality.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
name: Code Quality
on:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- master
workflow_dispatch:
jobs:
lint:
name: Python Code Quality and Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip' # caching pip dependencies
- run: pip install flake8-docstrings
- run: flake8 ./src/ --docstring-convention numpy --max-line-length 120 --ignore D401,D205,D400,D406,D200,D403
- uses: ricardochaves/[email protected]
with:
python-root-list: "src"
use-pylint: false
use-pycodestyle: true
use-flake8: false
use-black: false
use-mypy: false
use-isort: false
extra-pylint-options: "--max-line-length=120 --ignore=E722,W0703,E0401,W0107"
extra-pycodestyle-options: "--max-line-length=120 --ignore=E722,W504"
extra-flake8-options: "--docstring-convention numpy --max-line-length 120 --ignore D401,D205,D400,D406"
extra-black-options: ""
extra-mypy-options: ""
extra-isort-options: ""