forked from adcirc/adcirc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.25 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.25 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
exclude: '^(thirdparty|docs)/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
files: '\.(F90|cmake|py|cpp)$'
- id: mixed-line-ending
files: '\.(F90|cmake|py|cpp)$'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.8
hooks:
- id: ruff
name: ruff python linter
args: ["--show-fixes", "--fix"]
files: '\.py$'
- id: ruff-format
name: ruff python format
- repo: https://github.com/PlasmaFAIR/fortitude-pre-commit
rev: v0.7.2
hooks:
- id: fortitude
name: fortitude fortran linter
files: '\.F90$'
args: ["--fix"]
- repo: https://github.com/fortran-lang/fprettify
rev: v0.3.7
hooks:
- id: fprettify
name: fprettify fortran formatter
files: '\.F90$'
language: python
args: ["--strip-comments", "--c-relations", "--enable-replacement", "--case", "1", "1", "1", "1"]
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
name: cmake-format
files: '(CMakeLists\.txt|\.cmake)$'
args: [--in-place]
additional_dependencies:
- pyyaml