-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathprek.toml
More file actions
62 lines (57 loc) · 1.42 KB
/
prek.toml
File metadata and controls
62 lines (57 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Configuration file for `prek`, a git hook framework written in Rust.
# See https://prek.j178.dev for more information.
#:schema https://www.schemastore.org/prek.json
[[repos]]
repo = "builtin"
hooks = [
{ id = "no-commit-to-branch" },
{ id = "check-yaml" },
{ id = "check-added-large-files" },
{ id = "check-merge-conflict" },
{ id = "check-executables-have-shebangs" }
]
[[repos]]
# fortitude: A Fortran linter, https://fortitude.readthedocs.io/
repo = "https://github.com/PlasmaFAIR/fortitude-pre-commit"
rev = "v0.7.1"
hooks = [
{
id = "fortitude",
args = ["--fix", "src/"],
pass_filenames = false,
files = "src/.*[fF]90",
}
]
[[repos]]
# shellcheck: A shell linter, https://www.shellcheck.net/
repo = "https://github.com/koalaman/shellcheck-precommit"
rev = "v0.11.0"
hooks = [
{
id = "shellcheck",
files = "dev_scripts/"
}
]
# Verify Github workflows have correct syntax
[[repos]]
repo = "https://github.com/python-jsonschema/check-jsonschema"
rev = "0.30.0"
hooks = [
{
id = "check-github-workflows"
}
]
[[repos]]
repo = "local"
hooks = [
{
id = "format",
name = "Format Fortran code",
language = "python",
entry = "./autoformat.py",
types = ["fortran"],
pass_filenames = true,
# This list must be in sync with .fprettify.rc
exclude = "interfaces/DFTB-SOCKET-DEV/*|utils/analyze_movie.f90|random.F90|fftw3.F90|force_cp2k.F90|h2o_schwenke.f|h2o_cvrqd.f"
}
]