Skip to content

Commit 3ddd887

Browse files
committed
fix: pre-commit generate-images regex and regenerate README diagram
The YAML `>-` folding inserted a space in the `files:` regex, preventing the hook from matching `statemachine/contrib/diagram/` paths. Use a single-line string instead. Regenerate the README diagram with the green state highlighted.
1 parent cb09b5d commit 3ddd887

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ repos:
4040
--events cycle cycle cycle
4141
language: system
4242
pass_filenames: false
43-
files: >-
44-
(statemachine/contrib/diagram/
45-
|tests/examples/traffic_light_machine\.py)
43+
files: (statemachine/contrib/diagram/|tests/examples/traffic_light_machine\.py)
4644
- id: pytest
4745
name: Pytest
4846
entry: uv run pytest -n auto --cov-fail-under=100
1.65 KB
Loading

0 commit comments

Comments
 (0)