GitHub - fredrikekre/runic-pre-commit at fe/julia

A pre-commit hook to run the Runic.jl code formatter.

Usage

Install pre-commit (installation instructions) and add the following to your .pre-commit-config.yaml file:

repos:
  - repo: https://github.com/fredrikekre/runic-pre-commit
    rev: v2.0.0
    hooks:
      - id: runic

By default this will configure the hook to run with the latest Runic version available at hook installation time. To explicitly configure a version of Runic you can use pre-commits additional_dependencies configuration, for example to use Runic version 1.4.3:

repos:
  - repo: https://github.com/fredrikekre/runic-pre-commit
    rev: v2.0.0
    hooks:
      - id: runic
        additional_dependencies:
          - 'Runic@1.4.3'

Note

The current version (v2.0.0 and above) of this repository make use of Julia language hooks which require pre-commit version 4.1.0 or later. If you cannot upgrade pre-commit you can use version v1.0.0 of this repository instead.