Skip to content

Commit 8c30858

Browse files
mzeccznicholls
authored andcommitted
Ad fortitude config
1 parent 54868a4 commit 8c30858

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ repos:
4444
- id: ruff
4545
args: [ --fix, --exit-non-zero-on-fix ]
4646
- id: ruff-format
47+
- repo: https://github.com/PlasmaFAIR/fortitude-pre-commit
48+
# Fortitude version.
49+
rev: v0.7.5
50+
hooks:
51+
- id: fortitude
52+
args: ["--fix", "--unsafe-fixes", "--preview"]
4753
- repo: https://github.com/astral-sh/uv-pre-commit
4854
rev: 0.5.21
4955
hooks:

fortitude.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[check]
2+
select = ["C", "E", "S"] # Enable certain error/warning categories
3+
ignore = ["C003", "C132", "C002"] # Ignore specific warnings
4+
line-length = 120 # Max allowed line length

0 commit comments

Comments
 (0)