forked from ricardochaves/python-lint
-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
86 lines (85 loc) · 2.48 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
77
78
79
80
81
82
83
84
85
86
name: "PyAction: One-stop Python linter"
description: "One-stop, zero-configuration GitHub Action for linting and enforcing style in Python projects."
inputs:
python-root-list:
description: "A list of all paths to test"
required: false
default: "./**/*.py"
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
use-vulture:
description: "Use vulture"
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: ""
extra-vulture-options:
description: "Extra options: vulture $(extra-vulture-options) $(python-root-list)"
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.use-vulture }}
- ${{ inputs.extra-pylint-options }}
- ${{ inputs.extra-pycodestyle-options }}
- ${{ inputs.extra-flake8-options }}
- ${{ inputs.extra-black-options }}
- ${{ inputs.extra-mypy-options }}
- ${{ inputs.extra-isort-options }}
- ${{ inputs.extra-vulture-options }}
branding:
icon: "check"
color: "gray-dark"