From 3f689917cb8681f9a3f11a33a6136de764a6f20b Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sun, 27 Nov 2022 21:38:43 -0500 Subject: [PATCH] Use alternative TOML format for per-file-ignores in README (#931) --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1be556cbe5..24862828b2 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,9 @@ fix = true unfixable = ["F401"] # Ignore `E402` (import violations in any `__init__.py` file, and in `path/to/file.py`. -per-file-ignores = {"__init__.py" = ["E402"], "path/to/file.py" = ["E402"]} +[tool.ruff.per-file-ignores] +"__init__.py" = ["E402"] +"path/to/file.py" = ["E402"] ``` Plugin configurations should be expressed as subsections, e.g.: