Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit f362211

Browse files
committed
Added yamllint #4495
1 parent a7d9e5f commit f362211

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

renovate.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4575,6 +4575,16 @@
45754575
"datasourceTemplate": "github-releases",
45764576
"extractVersionTemplate": "^v(?<version>.+?)$"
45774577
},
4578+
{
4579+
"fileMatch": [
4580+
"^tools/yamllint/manifest.yaml$"
4581+
],
4582+
"matchStrings": [
4583+
"version: \"?(?<currentValue>.*?)\"?\\n"
4584+
],
4585+
"depNameTemplate": "yamllint",
4586+
"datasourceTemplate": "pypi"
4587+
},
45784588
{
45794589
"fileMatch": [
45804590
"^tools/yasu/manifest.yaml$"

tools/yamllint/Dockerfile.template

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#syntax=docker/dockerfile:1.5.1
2+
3+
ARG ref=main
4+
5+
FROM ghcr.io/nicholasdille/docker-setup/python:${ref} AS python
6+
7+
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
8+
COPY --link --from=python / /
9+
ENV PIPX_HOME=${prefix}${target}/libexec/pipx \
10+
PIPX_BIN_DIR=${prefix}${target}/bin
11+
ARG name
12+
ARG version
13+
RUN <<EOF
14+
pipx install "yamllint==${version}"
15+
ln --symbolic --relative --force "${prefix}${target}/libexec/pipx/venvs/yamllint/bin/yamllint" "${prefix}${target}/bin/yamllint"
16+
sed -i "s|#\!${prefix}/|#\!/|" "${prefix}${target}/libexec/pipx/venvs/yamllint/bin/yamllint"
17+
EOF

tools/yamllint/manifest.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: yamllint
2+
version: "1.29.0"
3+
check: ${binary} --version | cut -d' ' -f2
4+
dependencies:
5+
- python
6+
tags:
7+
- category/development
8+
- lang/python
9+
- type/cli
10+
homepage: https://github.com/adrienverge/yamllint
11+
description: Linter for YAML files
12+
renovate:
13+
datasource: pypi
14+
package: yamllint

0 commit comments

Comments
 (0)