Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix misspelled TOML headers in the tutorial #8209

Merged
merged 1 commit into from
Oct 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading