No project description provided
Project description
gitlabci-jsonschema-lint
This is a pre-commit hook that uses the json schema
from https://json.schemastore.org/gitlab-ci
to validate the contents of your .gitlab-ci.yml
file.
Rationale
Other similar tool exist like this hook but since the beginning of 2021,
Gitlab updated their API and it is no longer possible to make unauthenticated calls to the Gitlab endpoint /api/v4/ci/lint
that is used by the hook, and which makes it harder to integrate as it would require some shared token.
As an alternative to that, I created this hook which works completely offline
CLI Usage
gitlabci-jsonschema-lint ../some_projects/.gitlab-ci.yml
Pre-commit integration
An example .pre-commit-config.yaml
:
repos:
- repo: https://github.com/bagerard/gitlabci-jsonschema-lint
rev: master
hooks:
- id: gitlabci-jsonschema-lint
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
File details
Details for the file gitlabci-jsonschema-lint-0.0.2.tar.gz
.
File metadata
- Download URL: gitlabci-jsonschema-lint-0.0.2.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc68ea9f63042de4ffa3c06c09044dc658b1c0ec067206822f76bd73ab05a7b |
|
MD5 | a31a56bd6b27545971a9943405e625b3 |
|
BLAKE2b-256 | 0df9899425669c4bd7d379638b53b06d173325607c6f2ae5732cd7975c9c296a |
File details
Details for the file gitlabci_jsonschema_lint-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: gitlabci_jsonschema_lint-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09649fce22e5c99b0ca3b85c2a40cf226293262a4d249f496677ad020cf68221 |
|
MD5 | edcc12995b55e5c57ff3f5e7d31a3951 |
|
BLAKE2b-256 | cf15db513ed827fc60fe5a2f24533db7cf030f087fcc584d3ddfb24457d6f8c1 |