Skip to content

qiaojunfeng/pre-commit-julia-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pre-commit-julia-format

pre-commit hooks for running JuliaFormatter.jl

Hook Prerequisites

  • requires JuliaFormatter.jl installed in your current julia package environment. i.e.,

    cd DIR_OF_YOUR_REPO/
    julia       # start julia REPL
    ]           # enter Pkg mode
    activate .  # activate the environment of the current dir
    status      # there should be a JuliaFormatter installed

Hook Installation

To use hooks, add the following code block to your .pre-commit-config.yaml:

- repo: https://github.com/qiaojunfeng/pre-commit-julia-format
  rev: 0.1.0                 # use the most recent version
  hooks:
  - id: julia-format         # formatter for Julia code

Hook Configuration

Style

You can use the .JuliaFormatter.toml to specify the style.

References

About

pre-commit hooks for running JuliaFormatter.jl

Resources

License

Stars

Watchers

Forks

Packages

No packages published