Skip to content

Commit f9de303

Browse files
committed
ci: remove trailing whitespace from tests
1 parent f37f5da commit f9de303

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
- id: pretty-format-json
2727
args: [--autofix, --indent=4]
2828
- id: trailing-whitespace
29-
exclude: tests/.*fixtures.*\.md|__snapshots__/.*\.ambr
29+
exclude: __snapshots__/.*\.ambr
3030
- repo: https://github.com/astral-sh/ruff-pre-commit
3131
rev: v0.6.1
3232
hooks:

tests/format/fixtures/semantic_indent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Handle Mixed Indents
135135
List with (what should be converted to a) code block
136136
.
137137
- item 1
138-
138+
139139
code block
140140
.
141141
- item 1
@@ -146,7 +146,7 @@ List with (what should be converted to a) code block
146146
List with explicit code block (that should keep indentation)
147147
.
148148
- item 1
149-
149+
150150
```txt
151151
code block
152152
```
@@ -266,7 +266,7 @@ Table
266266
Floating Link
267267
.
268268
> Based on [External Link]
269-
269+
270270
[external link]: https://github.com/czuli/github-markdown-example/tree/7326f19c94be992319394e5bfeaa07b30f858e46
271271
.
272272
> Based on [External Link]

tests/format/fixtures/text.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -844,12 +844,12 @@ Example from Ultralytics Documentation (https://github.com/ultralytics/ultralyti
844844
845845
```py
846846
from pathlib import Path
847-
847+
848848
import cv2 as cv
849849
import numpy as np
850850
from ultralytics import YOLO
851851
```
852-
852+
853853
???+ tip "Ultralytics Install"
854854
855855
See the Ultralytics [Quickstart](../quickstart.md/#install-ultralytics) Installation section for a quick walkthrough on installing the required libraries.
@@ -863,7 +863,7 @@ Example from Ultralytics Documentation (https://github.com/ultralytics/ultralyti
863863
864864
# Load a model
865865
model = YOLO('yolov8n-seg.pt')
866-
866+
867867
# Run inference
868868
result = model.predict()
869869
```
@@ -880,7 +880,7 @@ Example from Ultralytics Documentation (https://github.com/ultralytics/ultralyti
880880
This is helpful for rapid testing with the `predict()` method.
881881
882882
For additional information about Segmentation Models, visit the [Segment Task](../tasks/segment.md#models) page. To learn more about `predict()` method, see [Predict Mode](../modes/predict.md) section of the Documentation.
883-
883+
884884
***
885885
886886
3. Now iterate over the results and the contours. For workflows that want to save an image to file, the source image `base-name` and the detection `class-label` are retrieved for later use (optional).
@@ -1292,35 +1292,35 @@ More complex example to validate formatting when nested
12921292
1. List Outer
12931293
12941294
???+ Note
1295-
1295+
12961296
=== "First"
1297-
1297+
12981298
Markdown **content**.
1299-
1299+
13001300
Multiple paragraphs.
1301-
1301+
13021302
??? "Second"
1303-
1303+
13041304
Markdown **content**.
1305-
1305+
13061306
Multiple paragraphs.
1307-
1307+
13081308
===+ "Third"
1309-
1309+
13101310
- List Item
1311-
1311+
13121312
- Another Item
1313-
1313+
13141314
=== "Fourth"
1315-
1315+
13161316
- List Item
1317-
1317+
13181318
- Another Item
1319-
1319+
13201320
===! "Lastly a new item"
1321-
1321+
13221322
Markdown **content** for last item.
1323-
1323+
13241324
Very last indented paragraph.
13251325
13261326
2. Next

0 commit comments

Comments
 (0)