1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00
catalog/task/flake8/0.1
Yulia Gaponenko f4708d478e Add linux/amd64 platform annotation to the rest of the tasks
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>
2021-10-29 17:08:38 +01:00
..
tests Add flake8 task 2021-07-26 19:45:08 +01:00
flake8.yaml Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00
README.md Add linux/amd64 platform annotation to the rest of the tasks 2021-10-29 17:08:38 +01:00

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/"