From d1c67f91bd7983dc95bdeda610647b8f3eea4ce2 Mon Sep 17 00:00:00 2001 From: T-256 <132141463+T-256@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:12:05 +0330 Subject: [PATCH] Document: Fix default lint rules (#8218) ## Summary closes #8217 ## Test Plan --- docs/configuration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index f29ce0688a..ee991f0100 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -78,7 +78,7 @@ As an example, the following would configure Ruff to: ```toml [tool.ruff.lint] # 1. Enable flake8-bugbear (`B`) rules, in addition to the defaults. -select = ["E", "F", "B"] +select = ["E4", "E7", "E9", "F", "B"] # 2. Avoid enforcing line-length violations (`E501`) ignore = ["E501"] @@ -101,7 +101,7 @@ Linter plugin configurations are expressed as subsections, e.g.: ```toml [tool.ruff.lint] # Add "Q" to the list of enabled codes. -select = ["E", "F", "Q"] +select = ["E4", "E7", "E9", "F", "Q"] [tool.ruff.lint.flake8-quotes] docstring-quotes = "double" @@ -121,7 +121,7 @@ For example, the `pyproject.toml` described above would be represented via the f ```toml [lint] # Enable flake8-bugbear (`B`) rules. -select = ["E", "F", "B"] +select = ["E4", "E7", "E9", "F", "B"] # Never enforce `E501` (line length violations). ignore = ["E501"]