1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +00:00
catalog/task/pylint/0.2
vinamra28 e763a4473e Use latest git-clone in Task's tests
With git-clone version 0.8 and onwards, it started running as non-root
and GKE clusters were having some issues, so, we temporarily moved all
tasks to use git-clone version 0.7. Ref: https://github.com/tektoncd/catalog/pull/1079

Since we have now moved to kind clusters in our CI, this issue is now
resolved and thus moving all tasks to use latest version of git-clone

Signed-off-by: vinamra28 <jvinamra776@gmail.com>
2023-09-22 09:32:22 +01:00
..
tests Use latest git-clone in Task's tests 2023-09-22 09:32:22 +01:00
pylint.yaml Force pylint image to v0.12.0 to fix ci 2023-02-02 11:40:15 +00:00
README.md [TEP-0110] Update Tekton Catalog installation instructions 2022-08-16 16:25:52 +01:00

pylint

The task provides linting based on pylint for Python.

Install the Task

Workspaces

  • source: A Workspace volume containing the python code.

Install the pylint task

kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/pylint/0.2/raw

Parameters

  • args: The arguments to be passed to the pylint CLI. This parameter is required to run this task. (Default: [""])
  • path: The path to the module which should be analysed by pylint. (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 pylint in a python module directory called module/.

apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
  name: lint
spec:
  taskRef:
    name: pylint
  workspaces:
  - name: source
    volumeClaimTemplate:
      spec:
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 100Mi
  params:
  - name: args
    value: ["-r", "y"]
  - name: path
    value: "module/"