Skip to content

Commit b4b20be

Browse files
Merge pull request #3126 from VWS-Python/adamtheturtle/vale-sync-on-config
Sync Vale styles when .vale.ini changes
2 parents 5a23cdd + 489724b commit b4b20be

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)