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.
This commit is contained in:
Romain Primet 2021-10-08 16:57:15 +02:00 committed by GitHub
parent 21d3c70d67
commit e5d0ce01ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: