Skip to main content

Zuul Job Config Linter

Project description

zuul-lint

Validate from the command line

pip install zuul-lint

zuul-lint .zuul.yaml

Validate with pre-commit

Add the code below to your .pre-commit-config.yaml file:

  - repo: https://github.com/pycontribs/zuul-lint.git
    rev: "0.1"
    hooks:
      - id: zuul-lint

Validate with VS Code

To ease editing Zuul CI configuration file we added experimental support for a Zuul JSON Schema. This should enable validation and auto-completion in code editors.

For example on VSCode you can use the YAML extension to use such a schema validation by adding the following to settings.json:

"yaml.schemas": {
    "https://raw.githubusercontent.com/pycontribs/zuul-lint/master/zuul_lint/zuul-schema.json": ["*zuul.d/*.yaml", "*/.zuul.yaml"]
    },
"yaml.customTags": [
    "!encrypted/pkcs1-oaep array"
],
"sortJSON.orderOverride": ["title", "name", "$schema", "version", "description", "type"],
"sortJSON.orderUnderride": ["definitions"]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zuul-lint, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size zuul_lint-0.1.2-py2.py3-none-any.whl (5.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size zuul-lint-0.1.2.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page