Pre-commit hooks

Linters can be included as pre-commit hooks by adding the following to the .pre-commit-config.yaml:

repos:
  - repo: https://github.com/CoLRev-Environment/search-query
    rev: main  # or version of search-query
    hooks:
      - id: search-query-lint

For development and testing, use the following:

repos:
  - repo: local
    hooks:
      - id: search-query-lint
        name: Search-file linter
        entry: search-query-lint
        language: python
        files: \.json$

To activate and run:

pre-commit install
pre-commit run --all