Skip to content

Commit

Permalink
Upgrade configuration for Ruff v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Feb 1, 2024
1 parent e94575c commit b33734d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Expand Up @@ -139,7 +139,7 @@ omit = [
"docs_src/response_model/tutorial003_04_py310.py",
]

[tool.ruff]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
Expand All @@ -155,7 +155,7 @@ ignore = [
"W191", # indentation contains tabs
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"docs_src/dependencies/tutorial007.py" = ["F821"]
"docs_src/dependencies/tutorial008.py" = ["F821"]
Expand Down Expand Up @@ -188,9 +188,9 @@ ignore = [
"docs_src/dependencies/tutorial008b_an_py39.py" = ["B904"]


[tool.ruff.isort]
[tool.ruff.lint.isort]
known-third-party = ["fastapi", "pydantic", "starlette"]

[tool.ruff.pyupgrade]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true

0 comments on commit b33734d

Please sign in to comment.