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: "0.3.1"
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.3.1.tar.gz
(36.0 kB
view details)
Built Distribution
File details
Details for the file zuulcilint-0.3.1.tar.gz
.
File metadata
- Download URL: zuulcilint-0.3.1.tar.gz
- Upload date:
- Size: 36.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 847e5c589fbc095bfffc77103280476c32c0fcdf9a9660264edba0ee91ce6977 |
|
MD5 | 15049d4d32bcd042bf28e0ce77954169 |
|
BLAKE2b-256 | 489fb9790a6f24870e1e83b596cff2ff3bbeb1c2dc953d031ec1f94247448fef |
File details
Details for the file zuulcilint-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: zuulcilint-0.3.1-py3-none-any.whl
- Upload date:
- Size: 39.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.10.15 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e5b60ded7236350e3d4cb992875375035543c45eacfb5e248ec232b3485f968 |
|
MD5 | da28678d025d682402b4496b6db8702f |
|
BLAKE2b-256 | 241785e10daf71f32bd1925439a910d7a1ceb2e12436d6a3ff1cfe1a5c1c82c4 |