zuulcilint
Validate from the command line
pip install zuulcilint
usage: zuulcilint [-h] [--version] [--check-playbook-paths] [--schema SCHEMA] [--ignore-warnings] [--warnings-as-errors] file [file ...]
positional arguments:
file file(s) or paths to lint
options:
-h, --help show this help message and exit
--version show program's version number and exit
--check-playbook-paths, -c
check that playbook paths are valid
--schema SCHEMA, -s SCHEMA
path to Zuul schema file
--ignore-warnings, -i
ignore warnings
--warnings-as-errors handle warnings as errors
Validate with pre-commit
Add the code below to your .pre-commit-config.yaml file:
- repo: https://github.com/codesquadnest/zuulcilint.git
rev: "1.0.0"
hooks:
- id: zuulcilint
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 .vscode/settings.json:
"yaml.schemas": {
"https://raw.githubusercontent.com/codesquadnest/zuulcilint/master/zuulcilint/zuul-schema.json": [
"*zuul-extra.d/***/*.yaml",
"*zuul.d/**/*.yaml",
"*zuul.d/**/**/*.yaml",
"*/.zuul.yaml"
]
},
"yaml.customTags": [
"!encrypted/pkcs1-oaep",
"!encrypted/pkcs1-oaep sequence",
"!override",
"!override sequence",
"!override mapping",
"!inherit",
"!inherit sequence",
"!inherit mapping"
],
"sortJSON.orderOverride": ["title", "name", "$schema", "version", "description", "type"],
"sortJSON.orderUnderride": ["definitions"]
Metadata
Release files for zuulcilint 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zuulcilint-1.0.0.tar.gz | 37.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zuulcilint-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 75.2 kB
Release files / zuulcilint-1.0.0.tar.gz
| Download URL | zuulcilint-1.0.0.tar.gz |
|---|---|
| Size | 37.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1cda7eb12fd64a2654f45bbfeff7513896ec58a5ea43ba1ce61437b0b046bf1e
|
|
BLAKE2b-256 checksum How to use checksums |
3592d03d6a3c77b46c7a22ea5777cf4e3253d2047a57a1f5fb3faaa88cf3abb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.10.16 Linux/6.8.0-1017-azure
|
Release files / zuulcilint-1.0.0-py3-none-any.whl
| Download URL | zuulcilint-1.0.0-py3-none-any.whl |
|---|---|
| Size | 38.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed6e54d47a9dbda4e8a2cdb2aac4c30a6c5fee12e6aa162f2d6af0ac71c97345
|
|
BLAKE2b-256 checksum How to use checksums |
159df9dbb9fc6ac91fa4b81833708eb25ecd50b4235015ef4bc1dea0debe7b75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.0.0 CPython/3.10.16 Linux/6.8.0-1017-azure
|