mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
f4708d478e
At this moment all tasks which can be executed on linux/s390x or linux/ppc64le are tested and labelled accordingly. The rest of the tasks can be labelled as `linux/amd64`, which is default platform and where tasks are already tested via default PR testing cycle. Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com> |
||
---|---|---|
.. | ||
tests | ||
flake8.yaml | ||
README.md |
flake8
The task provides linting based on flake8 for Python.
Install the Task
Workspaces
- source: A Workspace volume containing the python code.
Install the flake8 task
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/flake8/0.1/flake8.yaml
Parameters
- args: The arguments to be passed to the flake8 CLI. (Default:
[""]
) - path: The path to the module which should be analysed by flake8. (Default:
"."
) - requirements_file: The path to the requirements file to pip install for your application to be checked. (Default:
"requirements.txt"
)
Platforms
The Task can be run on linux/amd64
platform.
Usage
This TaskRun
runs flake8
in a python module directory called module/
.
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: lint
spec:
taskRef:
name: flake8
workspaces:
- name: source
volumeClaimTemplate:
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
params:
- name: args
value: ["--verbose"]
- name: path
value: "module/"