-
Notifications
You must be signed in to change notification settings - Fork 42
/
action.yml
76 lines (75 loc) · 2.13 KB
/
action.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: "Python Code Quality and Lint"
description: "Supports Pylint, pycodestyle, Flake8, black, mypy and isort"
inputs:
python-root-list:
description: "A list of all paths to test"
required: false
default: "."
use-pylint:
description: "Use Pylint"
required: false
default: true
use-pycodestyle:
description: "Use pycodestyle"
required: false
default: true
use-flake8:
description: "Use Flake8"
required: false
default: true
use-black:
description: "Use Black"
required: false
default: true
use-mypy:
description: "Use mypy"
required: false
default: true
use-isort:
description: "Use isort"
required: false
default: true
extra-pylint-options:
description: "Extra options: pylint $(extra-pylint-options) $(python-root-list)"
required: false
default: ""
extra-pycodestyle-options:
description: "Extra options: pycodestyle $(extra-pycodestyle-options) $(python-root-list)"
required: false
default: ""
extra-flake8-options:
description: "Extra options: flake8 $(extra-flake8-options) $(python-root-list)"
required: false
default: ""
extra-black-options:
description: "Extra options: black --check $(extra-black-options) $(python-root-list)"
required: false
default: ""
extra-mypy-options:
description: "Extra options: mypy $(extra-mypy-options) $(python-root-list)"
required: false
default: ""
extra-isort-options:
description: "Extra options: isort -rc $(extra-isort-options) $(python-root-list) -c --diff "
required: false
default: ""
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.python-root-list }}
- ${{ inputs.use-pylint }}
- ${{ inputs.use-pycodestyle }}
- ${{ inputs.use-flake8 }}
- ${{ inputs.use-black }}
- ${{ inputs.use-mypy }}
- ${{ inputs.use-isort }}
- ${{ inputs.extra-pylint-options }}
- ${{ inputs.extra-pycodestyle-options }}
- ${{ inputs.extra-flake8-options }}
- ${{ inputs.extra-black-options }}
- ${{ inputs.extra-mypy-options }}
- ${{ inputs.extra-isort-options }}
branding:
icon: "terminal"
color: "white"