-
Notifications
You must be signed in to change notification settings - Fork 18
/
action.yaml
46 lines (45 loc) · 1.05 KB
/
action.yaml
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
name: "Python Linter"
description: "Ensure Python code quality. Supports pylint, black, mypy and isort."
branding:
icon: "sun"
color: "red"
inputs:
source:
description: "Source file or directory"
required: false
default: "."
strict:
description: "Set strictness for lint [low, medium, high]"
required: false
default: "medium"
mypy-options:
description: "Mypy options"
required: false
default: ""
pylint-options:
description: "Pylint options"
required: false
default: ""
black-options:
description: "Black options"
required: false
default: ""
isort-options:
description: "Isort options"
required: false
default: ""
django:
description: "Confirm if source is a Django project"
required: false
default: false
runs:
using: "Docker"
image: "Dockerfile"
args:
- ${{ inputs.source }}
- ${{ inputs.strict }}
- ${{ inputs.mypy-options }}
- ${{ inputs.pylint-options }}
- ${{ inputs.black-options }}
- ${{ inputs.isort-options }}
- ${{ inputs.django }}