From e898edf05c5051fee377f91c3e6647d59d594d8c Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 22 Dec 2022 10:47:35 -0500 Subject: [PATCH] Set force-exclude in docs (#13) --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 49b0a65..47de00a 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,25 @@ A [pre-commit](https://pre-commit.com/) hook for [Ruff](https://github.com/charliermarsh/ruff). -Distributed as a standalone repository to enable installing ruff via prebuilt wheels from +Distributed as a standalone repository to enable installing Ruff via prebuilt wheels from [PyPI](https://pypi.org/project/ruff/). For pre-commit: see https://github.com/pre-commit/pre-commit -For ruff: see https://github.com/charliermarsh/ruff +For Ruff: see https://github.com/charliermarsh/ruff ### Using ruff with pre-commit Add this to your `.pre-commit-config.yaml`: ```yaml - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: '' # Use the sha / tag you want to point at - hooks: - - id: ruff +- repo: https://github.com/charliermarsh/ruff-pre-commit + # Ruff version. + rev: 'v0.0.191' + hooks: + - id: ruff + # Respect `exclude` and `extend-exclude` settings. + args: ["--force-exclude"] ``` ## License