mdx-include = "^1.4.1"
coverage = {extras = ["toml"], version = ">=6.2,<8.0"}
fastapi = "^0.103.2"
-ruff = "^0.1.2"
+ruff = "0.2.0"
# For FastAPI tests
httpx = "0.24.1"
# TODO: upgrade when deprecating Python 3.7
disallow_untyped_defs = false
disallow_untyped_calls = false
-[tool.ruff]
+[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
- "C", # flake8-comprehensions
"B", # flake8-bugbear
+ "C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"W191", # indentation contains tabs
]
-[tool.ruff.per-file-ignores]
+[tool.ruff.lint.per-file-ignores]
# "__init__.py" = ["F401"]
-[tool.ruff.isort]
+[tool.ruff.lint.isort]
known-third-party = ["sqlmodel", "sqlalchemy", "pydantic", "fastapi"]
-[tool.ruff.pyupgrade]
+[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true