@@ -47,7 +47,7 @@ cairosvg = "^2.5.2"
47
47
mdx-include = " ^1.4.1"
48
48
coverage = {extras = [" toml" ], version = " >=6.2,<8.0" }
49
49
fastapi = " ^0.103.2"
50
- ruff = " ^0.1.2 "
50
+ ruff = " 0.2.0 "
51
51
# For FastAPI tests
52
52
httpx = " 0.24.1"
53
53
# TODO: upgrade when deprecating Python 3.7
@@ -92,14 +92,14 @@ disallow_incomplete_defs = false
92
92
disallow_untyped_defs = false
93
93
disallow_untyped_calls = false
94
94
95
- [tool .ruff ]
95
+ [tool .ruff . lint ]
96
96
select = [
97
97
" E" , # pycodestyle errors
98
98
" W" , # pycodestyle warnings
99
99
" F" , # pyflakes
100
100
" I" , # isort
101
- " C" , # flake8-comprehensions
102
101
" B" , # flake8-bugbear
102
+ " C4" , # flake8-comprehensions
103
103
" UP" , # pyupgrade
104
104
]
105
105
ignore = [
@@ -109,12 +109,12 @@ ignore = [
109
109
" W191" , # indentation contains tabs
110
110
]
111
111
112
- [tool .ruff .per-file-ignores ]
112
+ [tool .ruff .lint . per-file-ignores ]
113
113
# "__init__.py" = ["F401"]
114
114
115
- [tool .ruff .isort ]
115
+ [tool .ruff .lint . isort ]
116
116
known-third-party = [" sqlmodel" , " sqlalchemy" , " pydantic" , " fastapi" ]
117
117
118
- [tool .ruff .pyupgrade ]
118
+ [tool .ruff .lint . pyupgrade ]
119
119
# Preserve types, even if a file imports `from __future__ import annotations`.
120
120
keep-runtime-typing = true
0 commit comments