Skip to content

Commit

Permalink
Fix misspelled TOML headers in the tutorial (#8209)
Browse files Browse the repository at this point in the history
## Summary

Fixes misspelled TOML headers in the tutorial regarding the
configuration of the Ruff Linter.
  • Loading branch information
veot authored Oct 25, 2023
1 parent fd07a12 commit f55b724
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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"]
```
Expand All @@ -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
]
Expand All @@ -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"
```

Expand Down

0 comments on commit f55b724

Please sign in to comment.