From 46cdcac1de4b79cc7771f5370bed9f6b3d97a19b Mon Sep 17 00:00:00 2001 From: Ruwen Frick <63873305+ruwfr@users.noreply.github.com> Date: Fri, 27 Sep 2024 08:49:08 +0200 Subject: [PATCH] Update readme config examples to work with pre-commit >= 3 (#99) Co-authored-by: Ruwen Frick --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a8164b0..cf861fd 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https (available as of Ruff v0.0.289) via pre-commit, add the following to your `.pre-commit-config.yaml`: ```yaml +repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.6.8 @@ -30,6 +31,7 @@ To run Ruff's [linter](https://docs.astral.sh/ruff/linter) and [formatter](https To enable lint fixes, add the `--fix` argument to the lint hook: ```yaml +repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.6.8 @@ -44,6 +46,7 @@ To enable lint fixes, add the `--fix` argument to the lint hook: To avoid running on Jupyter Notebooks, remove `jupyter` from the list of allowed filetypes: ```yaml +repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. rev: v0.6.8