Skip to content

Commit 45dad5f

Browse files
Fix: Improve Vale repetition rule to exclude code blocks and fix typo in docs (#5162)
This pull request improves the documentation style checks and fixes a small typo. Changes: Added a custom Vale rule at .github/styles/Kedro/Repetition.yml to avoid flagging repeated words inside code blocks and inline code (e.g., kedro.runner.runner, kedro.pipeline.pipeline). This helps reduce false positives while still catching repetition in regular text. Fixed a typo in docs/develop/automated_testing.md (“he option” → “The option”).
1 parent 21fcc1e commit 45dad5f

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Override Vale.Repetition to exclude code blocks and inline code
2+
extends: repetition
3+
message: "'%s' is repeated!"
4+
level: error
5+
# Check all scopes except code
6+
scope: 'text'
7+
alpha: true
8+
tokens:
9+
- '[^\s]+'

docs/develop/automated_testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Alternatively, you can individually install test requirements as you would insta
4747
pip install -e .
4848
```
4949
!!! note
50-
he option `-e` installs an editable version of your project, allowing you to make changes to the project files without needing to re-install them each time.
50+
The option `-e` installs an editable version of your project, allowing you to make changes to the project files without needing to re-install them each time.
5151

5252
2. Install test requirements one by one:
5353
```bash

0 commit comments

Comments
 (0)