ci-fairy: add pre-commit hook.

Allow using the ci-fairy linter with pre-commit.
15 jobs for ft/pre-commit in 48 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Sanity Check
passed #8366559
check commits

00:00:29

passed #8366561
flake8 ci-fairy

00:00:14

passed #8366560
pytest ci-fairy

00:00:39

passed #8366558
sanity check

00:00:33

 
  Bootstrapping
failed bootstrapping

 
  Distributions
skipped alpine
skipped arch
skipped centos
skipped debian
skipped fedora
skipped ubuntu
 
  Post Children Pipelines
failed #8366569
check children pipelines

00:00:08

 
  Ci Fairy
skipped ci-fairy images
 
  Deploy
skipped #8366571
allowed to fail
check merge request
skipped #8366572
pages
 
Name Stage Failure
failed
check children pipelines Post Children Pipelines
    }
}
]
$ CHILD_STATUSES=$(echo $DATA | jq -r '.[] | .downstream_pipeline.status' | sort -u | grep -v null)
$ echo $CHILD_STATUSES
failed
$ [ "$CHILD_STATUSES" == "success" ]
Cleaning up file based variables
ERROR: Job failed: exit code 1