Skip to content

pre-commit-crocodile

Release Python Downloads License
Build Bugs Code Smells Coverage Lines of Code Quality Gate Status
pre-commit Commitizen friendly gcil pre-commit-crocodile

Git hooks intended for developers using pre-commit and commitizen.


CI/CD components

GitLab CI/CD Catalog: https://gitlab.com/explore/catalog/RadianDevCore/tools/pre-commit-crocodile


commits - GitLab CI job to validate newly pushed commits

Validate commits added on a branch or for a merge request :

  • Show commits specifications and syntax examples
  • Check commits automatically with commitizen configurations
  • Run pre-commit checks on all files
  • Deny WIP commits on GitLab branches
Sources / .gitlab-ci.yml
include:
  - component: gitlab.com/RadianDevCore/tools/pre-commit-crocodile/commits@X.Y.Z # Adapt to latest release tag
    inputs:
      stage: prepare

stages:
  - prepare
  - ...