Commit fd410002 authored by Nimrod Adar's avatar Nimrod Adar

ci-fairy: add pre-commit hook.

Allow using the ci-fairy linter with pre-commit.
parent 18194044
Pipeline #248760 passed with stages
in 1 minute and 16 seconds
- id: ci-fairy
name: Lint gitlab-ci.yml
language: python
entry: ci-fairy
args: ["lint", "--filename"]
types: ["yaml"]
files: \.gitlab-ci\.yml
......@@ -104,6 +104,22 @@ GitLab has an online linter but it requires copy/pasting the
linter** and print any errors.
.. _ci-fairy-pre-commit:
You can incorperate the ci-fairy lint check in your `pre-commit
<>`_ setup. Add the following snippet to your
.. code-block:: yaml
- repo:
rev: master
- id: ci-fairy
.. _ci-fairy-deleting-images:
Deleting registry images
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment