pre-commit: install_deps> python -I -m pip install pre-commit pre-commit: freeze> python -m pip freeze --all pre-commit: cfgv==3.4.0,distlib==0.4.0,filelock==3.20.0,identify==2.6.15,nodeenv==1.9.1,pip==25.2,platformdirs==4.5.0,pre_commit==4.3.0,PyYAML==6.0.3,setuptools==80.9.0,typing_extensions==4.15.0,virtualenv==20.35.3 pre-commit: commands[0]> pre-commit run --all-files --show-diff-on-failure [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Failed - hook id: trailing-whitespace - exit code: 1 - files were modified by this hook Fixing argo/updateVariables.sh Fixing argo/infra/kustomization.yaml Tabs remover.............................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/argo/infra/kustomization.yaml b/argo/infra/kustomization.yaml index 93fcc5963..d6fa4424b 100644 --- a/argo/infra/kustomization.yaml +++ b/argo/infra/kustomization.yaml @@ -39,4 +39,4 @@ resources: - infra-ingress.yaml - django-defectdojo.yaml - trivy-dojo-report-operator.yaml - + diff --git a/argo/updateVariables.sh b/argo/updateVariables.sh index ffa301e6a..cb972e311 100755 --- a/argo/updateVariables.sh +++ b/argo/updateVariables.sh @@ -23,15 +23,15 @@ VARS["GITHUB_REPO"]="ghcr.io" replace_in_file() { local file="$1" local tmpfile="${file}.tmp" - + cp "$file" "$tmpfile" - + for var in "${!VARS[@]}"; do # Replace with value # -i: inplace, but done with tmpfile, if Backup is required sed -i "s|<${var}>|${VARS[$var]}|g" "$tmpfile" done - + mv "$tmpfile" "$file" } pre-commit: exit 1 (12.20 seconds) /w/workspace/oom-master-pre-commit-lint> pre-commit run --all-files --show-diff-on-failure pid=2252 pre-commit: FAIL code 1 (15.75=setup[3.55]+cmd[12.20] seconds) evaluation failed :( (15.78 seconds)