Skip to content

Commit

Permalink
Change pre-commit hook to run on specific files only (#840)
Browse files Browse the repository at this point in the history
The pre-commit hook should run only on jl, md, jmq, and qmd
files, since it only modifies those files.

Co-authored-by: Dominique Luna <dluna132@gmail.com>
  • Loading branch information
abelsiqueira and domluna authored Jun 7, 2024
1 parent 24ab864 commit 0208ed4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: "Julia Formatter"
entry: "julia -e 'import JuliaFormatter: format; format(\".\")'"
pass_filenames: false
always_run: true
always_run: false
types: [file]
files: \.(jl|[jq]?md)$
language: "system"
description: "An opinionated code formatter for Julia. Plot twist - the opinion is your own."
description: "An opinionated code formatter for Julia. Plot twist - the opinion is your own."

0 comments on commit 0208ed4

Please sign in to comment.