Skip to content

Commit dd6affb

Browse files
committed
Adding extra info about setting custom rules with fortitude
1 parent e1635f0 commit dd6affb

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

formatting/fortitude.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ A tool for installing, i.e. `pip` or `homebrew`
66

77
## Installation
88

9-
To install fortitude we can utilise the provided `pyproject.toml` by following the instructions in [the pre-commit install instructions](../README.md#pre-commit). The [quickstart page](https://fortitude.readthedocs.io/en/stable/#quickstart) for Fortitude details multiple other ways of installing the tool.
9+
To install fortitude we can utilise the provided `pyproject.toml` by following the instructions in [the pre-commit install instructions](../README.md#pre-commit).
10+
The [quickstart page](https://fortitude.readthedocs.io/en/stable/#quickstart) for Fortitude details multiple other ways of installing the tool.
1011

1112
## Usage in this repo
1213

@@ -16,7 +17,10 @@ This repo has been formatted with Fortitude. To check this repo with Fortitude,
1617
fortitude --config-file formatting/fortitude.toml check
1718
```
1819

19-
The config file, [fortitude.toml](./fortitude.toml), we have provided in the above command contains our rules which alter the [default fortitude rules](https://fortitude.readthedocs.io/en/stable/rules/).
20+
The config file, [fortitude.toml](./fortitude.toml), we have provided in the above command contains our rules which alter the
21+
[default fortitude rules](https://fortitude.readthedocs.io/en/stable/rules/).
22+
23+
2024

2125
### pre-commit
2226

formatting/fortitude.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
[check]
2+
# A set of rules we ignore. Fortitude will not enforce these rules.
23
ignore = [
34
"C003", # 'implicit none' missing 'external'
45
]
6+
7+
# A custom maxmum line length for our repo which will effect the
8+
# behaviour of rule S001 (line-too-long)
59
line-length = 132

0 commit comments

Comments
 (0)