Skip to content

Commit b40ef9e

Browse files
committed
Attempt to use pre-commit hook from fortitude
1 parent 44d2c8a commit b40ef9e

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
---
22
repos:
3-
- repo: local
3+
- repo: https://github.com/PlasmaFAIR/fortitude-pre-commit
4+
rev : v0.7.2
45
hooks:
5-
- id: fortran-tooling-hooks
6-
name: Fortran Tooling hooks
7-
description: Default pre-commit hooks for the ARC Fortran Tooling project
8-
entry: fortitude
9-
language: system
10-
types_or: [file, fortran]
11-
files: \.(f90)$
12-
args: ['--config-file', 'formatting/fortitude.toml', 'check']
13-
require_serial: true
14-
additional_dependencies: []
15-
minimum_pre_commit_version: "2.9.2"
6+
# Idealy, we would not need to specify the entry point, but the fortitude cli
7+
# requires the `--config-file` option to be specified before the `check` subcommand
8+
# and the pre-commit hook correctly states check in the entry.
9+
- id: fortitude
10+
entry: fortitude --config-file formatting/fortitude.toml check --force-exclude

0 commit comments

Comments
 (0)