pre-commit

Image to be used as a CI linting step in infrastructure repositories

Learn more about the framework

Example of Use

Gitlab

.gitlab-ci.yml

stages:
  - &lint "🧹 LINT"

pre-commit:
  stage: *lint
  image: ghcr.io/mayconritzmann/pre-commit:stable
  script:
    - git config --global --add safe.directory $CI_PROJECT_DIR
    - pre-commit run --all-files --verbose --color always
  only:
    - merge_requests