Skip to content

Commit 489724b

Browse files
adamtheturtleclaude
andcommitted
Sync Vale styles when .vale.ini changes
Gating ``vale sync`` on reStructuredText files alone meant a commit that only bumped the pinned ClearProse package left the gitignored ``styles`` directory on the old rules until the next reStructuredText change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 5a23cdd commit 489724b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,15 @@ repos:
295295
# directory.
296296
# Vale needs ``rst2html`` from Docutils on the ``PATH`` to parse
297297
# reStructuredText.
298+
# ``vale sync`` also runs when ``.vale.ini`` changes, so a package
299+
# bump takes effect without waiting for the next reStructuredText
300+
# change.
298301
- id: vale-sync
299302
name: vale sync
300303
entry: uv run --extra=dev vale sync
301304
language: python
302305
pass_filenames: false
303-
types_or: [rst]
306+
files: (\.rst$|^\.vale\.ini$)
304307
additional_dependencies:
305308
- *uv_version
306309
stages: [pre-commit]

0 commit comments

Comments
 (0)