From f55b724254e80faab59116ac24fb35bc6278f79a Mon Sep 17 00:00:00 2001 From: Otso Velhonoja <48589417+veot@users.noreply.github.com> Date: Wed, 25 Oct 2023 13:52:42 +0300 Subject: [PATCH] Fix misspelled TOML headers in the tutorial (#8209) ## Summary Fixes misspelled TOML headers in the tutorial regarding the configuration of the Ruff Linter. --- docs/tutorial.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tutorial.md b/docs/tutorial.md index 7a5b50bbd9f31..3fa2b6d974c5c 100644 --- a/docs/tutorial.md +++ b/docs/tutorial.md @@ -110,7 +110,7 @@ To configure Ruff, let's create a `pyproject.toml` file in our project's root di # Set the maximum line length to 79. line-length = 79 -[tool.ruff.linter] +[tool.ruff.lint] # Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that # overlap with the use of a formatter, like Black, but we can override this behavior by # explicitly adding the rule. @@ -137,7 +137,7 @@ requires-python = ">=3.10" # Set the maximum line length to 79. line-length = 79 -[tool.ruff.linter] +[tool.ruff.lint] # Add the `line-too-long` rule to the enforced rule set. extend-select = ["E501"] ``` @@ -164,7 +164,7 @@ rules, we can set our `pyproject.toml` to the following: [project] requires-python = ">=3.10" -[tool.ruff.linter] +[tool.ruff.lint] extend-select = [ "UP", # pyupgrade ] @@ -187,13 +187,13 @@ all functions have docstrings: [project] requires-python = ">=3.10" -[tool.ruff.linter] +[tool.ruff.lint] extend-select = [ "UP", # pyupgrade "D", # pydocstyle ] -[tool.ruff.linter.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" ```