Zuul CI linter
Project description
zuulcilint
Validate from the command line
pip install zuulcilint
usage: zuulcilint [-h] [--version] [--check-playbook-paths] [--schema SCHEMA] 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
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"
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 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.
Source Distribution
zuulcilint-0.2.3.tar.gz
(32.3 kB
view hashes)
Built Distribution
zuulcilint-0.2.3-py3-none-any.whl
(36.1 kB
view hashes)
Close
Hashes for zuulcilint-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 921bf441bdf6b7bea622e5a2306fd96ad1a2c6c05f87bdb612fc83cf5f8195f7 |
|
MD5 | b9d3f6ab345d7b58ecebc3a9cb1cb6da |
|
BLAKE2b-256 | fb6355d1f5dddd1a069a7135678bb79c1e922229fdf2c08b7d2c3ce9495ea895 |