Zuul CI linter
Project description
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"]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zuulcilint-1.0.0.tar.gz.
File metadata
- Download URL: zuulcilint-1.0.0.tar.gz
- Upload date:
- Size: 37.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.10.16 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cda7eb12fd64a2654f45bbfeff7513896ec58a5ea43ba1ce61437b0b046bf1e
|
|
| MD5 |
6d10ab6d813f248b635c56a4632edd5d
|
|
| BLAKE2b-256 |
3592d03d6a3c77b46c7a22ea5777cf4e3253d2047a57a1f5fb3faaa88cf3abb1
|
File details
Details for the file zuulcilint-1.0.0-py3-none-any.whl.
File metadata
- Download URL: zuulcilint-1.0.0-py3-none-any.whl
- Upload date:
- Size: 38.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.0 CPython/3.10.16 Linux/6.8.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed6e54d47a9dbda4e8a2cdb2aac4c30a6c5fee12e6aa162f2d6af0ac71c97345
|
|
| MD5 |
2f29bcbdcdd695b6180420f1fa91947f
|
|
| BLAKE2b-256 |
159df9dbb9fc6ac91fa4b81833708eb25ecd50b4235015ef4bc1dea0debe7b75
|