From d4fc485a761103d7ef60e851f4f32973a908cd9c Mon Sep 17 00:00:00 2001 From: StefanBRas <28559054+StefanBRas@users.noreply.github.com> Date: Wed, 2 Nov 2022 14:02:11 +0100 Subject: [PATCH] Update README.md to use table for per-file-ignore (#549) --- README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 7f6408a5da..870cb3219e 100644 --- a/README.md +++ b/README.md @@ -108,10 +108,7 @@ For example, you could configure Ruff to only enforce a subset of rules with: line-length = 88 select = ["E", "F"] ignore = ["E501"] -per-file-ignores = [ - "__init__.py:F401", - "path/to/file.py:F401" -] +per-file-ignores = {"__init__.py" = ["F401"], "path/to/file.py" = ["F401"]} ``` Plugin configurations should be expressed as subsections, e.g.: