Skip to content
Snippets Groups Projects
Select Git revision
  • 45feed3ed15f02f185cb4f889f45dc3b3f008c2e
  • master default protected
  • 1.5.13
  • 1.5.12
  • 1.5.11
  • 1.5.10
  • 1.5.9
  • 1.5.8
  • 1.5.7
  • 1.5.6
  • 1.5.5
  • 1.5.4
  • 1.5.3
  • 1.5.2
  • 1.5.1
  • 1.5.0
  • 1.4.9
  • 1.4.8
  • 1.4.7
  • 1.4.6
  • 1.4.3
  • 1.4.5
22 results

tbc-check

user avatar
to be continuous bot authored
chore(deps): update dependency ruff to v0.9.8

See merge request to-be-continuous/tools/tbc-check!54
45feed3e
History

tbc-check CLI tool

tbc-check is a basic CLI program that checks to-be-continuous templates.

Install

pip install tbc-check --index-url https://gitlab.com/api/v4/projects/to-be-continuous%2Ftools%2Ftbc-check/packages/pypi/simple --upgrade

# obtain help
tbc-check --help

Checked rules

tbc-check checks the following rules:

  • the existence of the kicker.json file
  • the existence of the README.md file
  • for each variable in the kicker.json file (main template and variants):
    • emtpy default values should be omitted
    • mapped input is declared in the related template with same name, type, default, options and description (WARNING only)
    • the variable is declared in the related template with expected input mapping ($[[ inputs.input-name ]])
    • the input/variable is documented in the README with same default (WARNING only)
    • for variables corresponding to container images:
  • for each job defined in GitLab templates:

If any non-WARNING rule fails, tbc-check fails with exit code 127.

Developers

# install dependencies
poetry install

# obtain help
poetry run tbc-check --help

# run tool
poetry run tbc-check path/to/tbc/template