Skip to content

Commit f3b0b1b

Browse files
authored
Merge pull request #369 from SciML/ap/precommit
Add precommit for formatting
2 parents 72e9222 + 8dae6cb commit f3b0b1b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.pre-commit-config.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
ci:
2+
skip:
3+
- julia-formatter
4+
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.5.0
8+
hooks:
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: check-yaml
12+
- id: check-added-large-files
13+
- repo: https://github.com/domluna/JuliaFormatter.jl
14+
rev: v1.0.45
15+
hooks:
16+
- id: julia-formatter
17+
- repo: https://github.com/pre-commit/mirrors-prettier
18+
rev: v3.1.0
19+
# We only want to format yaml, md files
20+
hooks:
21+
- id: prettier
22+
types_or:
23+
- yaml
24+
- markdown

0 commit comments

Comments
 (0)