@@ -47,7 +47,7 @@ cairosvg = "^2.5.2"
4747mdx-include = " ^1.4.1"
4848coverage = {extras = [" toml" ], version = " >=6.2,<8.0" }
4949fastapi = " ^0.103.2"
50- ruff = " ^0.1.2 "
50+ ruff = " 0.2.0 "
5151# For FastAPI tests
5252httpx = " 0.24.1"
5353# TODO: upgrade when deprecating Python 3.7
@@ -92,14 +92,14 @@ disallow_incomplete_defs = false
9292disallow_untyped_defs = false
9393disallow_untyped_calls = false
9494
95- [tool .ruff ]
95+ [tool .ruff . lint ]
9696select = [
9797 " E" , # pycodestyle errors
9898 " W" , # pycodestyle warnings
9999 " F" , # pyflakes
100100 " I" , # isort
101- " C" , # flake8-comprehensions
102101 " B" , # flake8-bugbear
102+ " C4" , # flake8-comprehensions
103103 " UP" , # pyupgrade
104104]
105105ignore = [
@@ -109,12 +109,12 @@ ignore = [
109109 " W191" , # indentation contains tabs
110110]
111111
112- [tool .ruff .per-file-ignores ]
112+ [tool .ruff .lint . per-file-ignores ]
113113# "__init__.py" = ["F401"]
114114
115- [tool .ruff .isort ]
115+ [tool .ruff .lint . isort ]
116116known-third-party = [" sqlmodel" , " sqlalchemy" , " pydantic" , " fastapi" ]
117117
118- [tool .ruff .pyupgrade ]
118+ [tool .ruff .lint . pyupgrade ]
119119# Preserve types, even if a file imports `from __future__ import annotations`.
120120keep-runtime-typing = true
0 commit comments