Metadata-Version: 2.1
Name: gitlabci-jsonschema-lint
Version: 0.0.3
Summary: Python library to lint .gitlab-ci.yml files
Home-page: https://github.com/bagerard/gitlabci-jsonschema-lint
Maintainer: Bastien Gerard
Maintainer-email: bast.gerard@gmail.com
License: MIT License
Description: # gitlabci-jsonschema-lint
        
        This is a [pre-commit hook](https://pre-commit.com/) 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](https://github.com/kadrach/pre-commit-gitlabci-lint) 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`:
        
        ```yaml
        repos:
          - repo: https://github.com/bagerard/gitlabci-jsonschema-lint
            rev: master
            hooks:
              - id: gitlabci-jsonschema-lint
        ```
        
        
Keywords: gitlab-ci linter
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Quality Assurance
Description-Content-Type: text/markdown
