diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4171919a..13c90215 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -295,12 +295,15 @@ repos: # directory. # Vale needs ``rst2html`` from Docutils on the ``PATH`` to parse # reStructuredText. + # ``vale sync`` also runs when ``.vale.ini`` changes, so a package + # bump takes effect without waiting for the next reStructuredText + # change. - id: vale-sync name: vale sync entry: uv run --extra=dev vale sync language: python pass_filenames: false - types_or: [rst] + files: (\.rst$|^\.vale\.ini$) additional_dependencies: - *uv_version stages: [pre-commit]