-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
source file
---
taskNameOverride: ''
namespaceOverride: ''
# extra labels that will be added to all Tekton resources
extraLabels:
tekton: 'true'
images:
git-init: ghcr.io/tektoncd/github.com/tektoncd/pipeline/cmd/git-init:v0.40.2
kubectl: bitnami/kubectl:1.33
# ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
# │ ⚫ Defines tasks, their specs, params, workspaces, results, volumes and steps. Override as necessary │
# │ │
# └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
tasks:
disabled: []
# - some-task
extraTasks: {}
# some-task:
# labels:
# tekton.dev/utils: 'true'
# description: |
# Some task description.
# workspaces:
# - name: source
# description: The source code files to run gitops task on
# params:
# - name: param1
# description: Param1 description.
# type: string
# - name: param2
# description: Param2 description.
# type: string
# results:
# - name: some_value
# description: Some value
# volumes:
# - name: some-volume
# emptyDir: {}
# steps:
# - name: execute
# image: '{{ .Values.images.tekton }}'
# imagePullPolicy: IfNotPresent
# securityContext:
# runAsUser: 1000
# runAsGroup: 1000
# runAsNonRoot: true
# privileged: false
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL
# env:
# - name: param1
# value: $(params.param1)
# - name: param2
# value: $(params.param2)
# workingDir: $(workspaces.source.path)
# volumeMounts:
# - mountPath: /tmp/example
# name: some-volume
# script: |
# #!/usr/bin/env bash
# set -eu
# echo "Param1: ${param1}"
# echo "Param2: ${param2}"
# echo -n "${param1}" \
# | tee "$(results.some_value.path)" > /dev/null✗ pre-commit run --files apps/addons/tekton-pipelines/tasks/values.yaml
yamllint.................................................................Passed
yamlfix..................................................................Failed
- hook id: yamlfix
- files were modified by this hook
[+] YamlFix: Fixing files
[+] Fixed apps/addons/tekton-pipelines/tasks/values.yaml
[+] Checked 1 files: 1 fixed, 0 left unchanged
result in the following change
Steps to reproduce
yamlfix.toml
# This is yamlfix configuration file
# https://lyz-code.github.io/yamlfix/#configuration
line_length = 180
section_whitelines = 1
sequence_style = "block_style"
whitelines = 1
comments_whitelines = 1
comments_min_spaces_from_content = 0
comments_require_starting_space = false
Current behavior
The shebang moved to the right
Desired behavior
The shebang stays
Environment
✗ yamlfix --version
------------------------------------------------------------------
yamlfix: 1.17.0
Python: 3.13.5
Platform: Linux-6.14.9-300.fc42.x86_64-x86_64-with-glibc2.41
------------------------------------------------------------------
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working