Pre-commit hook

This repo provides the following plugin for use with the Pre-commit framework:

The .pre-commit-hooks.yaml file
---
# Define plugins (hooks) provided by this repo.
# How to test: https://pre-commit.com/#developing-hooks-interactively

- id: licheck
  name: Check dependencies licenses
  description: 'Inspired by kontrolilo, check the licenses of sotware dependencies in package managers used by developers'
  language: python
  files: ^\.allowed_licenses.yml$
  types: []
  pass_filenames: false
  entry: licheck
  always_run: true

Add a .pre-commit-config.yaml file in the root of your git repo. These are the default plugin settings:

A simple example of a .pre-commit-config.yaml file
 repos:
 -   repo: https://codeberg.org/frnmst/licheck
     rev: master  # or a specific git tag from licheck
     hooks:
     -   id: licheck

You can override the defaults via the args parameter, such as:

Example of arguments passed as a pre-commit
 repos:
 -   repo: https://codeberg.org/frnmst/licheck
     rev: master  # or a specific git tag from licheck
     hooks:
     -   id: licheck
         args: ['--configuration-file', '.allowed_licenses.yml'] # CLI options

Finally run $ pre-commit install to enable the hook.