From e5d0ce01ad5f12d78a5197565d374528dfc1db9e Mon Sep 17 00:00:00 2001 From: Romain Primet Date: Fri, 8 Oct 2021 16:57:15 +0200 Subject: [PATCH] Use new pre-commit config format It seems that `pre-commit` now wants a top-level map (rather than a list) for its configuration. Update the example to match the new format. --- docs/source/user/using-hooks.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/source/user/using-hooks.rst b/docs/source/user/using-hooks.rst index 5a2e2b0..5c37dee 100644 --- a/docs/source/user/using-hooks.rst +++ b/docs/source/user/using-hooks.rst @@ -10,6 +10,7 @@ started is to add this configuration to your ``.pre-commit-config.yaml``: .. code-block:: yaml + repos: - repo: https://github.com/pycqa/flake8 rev: '' # pick a git hash / tag to point to hooks: