|
@ -53,7 +53,7 @@ test = [ |
|
|
"pytest >=7.1.3,<8.0.0", |
|
|
"pytest >=7.1.3,<8.0.0", |
|
|
"coverage[toml] >= 6.5.0,<7.0", |
|
|
"coverage[toml] >= 6.5.0,<7.0", |
|
|
"mypy ==0.982", |
|
|
"mypy ==0.982", |
|
|
"ruff ==0.0.114", |
|
|
"ruff ==0.0.138", |
|
|
"black == 22.10.0", |
|
|
"black == 22.10.0", |
|
|
"isort >=5.0.6,<6.0.0", |
|
|
"isort >=5.0.6,<6.0.0", |
|
|
"httpx >=0.23.0,<0.24.0", |
|
|
"httpx >=0.23.0,<0.24.0", |
|
@ -87,7 +87,7 @@ doc = [ |
|
|
"pyyaml >=5.3.1,<7.0.0", |
|
|
"pyyaml >=5.3.1,<7.0.0", |
|
|
] |
|
|
] |
|
|
dev = [ |
|
|
dev = [ |
|
|
"ruff ==0.0.114", |
|
|
"ruff ==0.0.138", |
|
|
"uvicorn[standard] >=0.12.0,<0.19.0", |
|
|
"uvicorn[standard] >=0.12.0,<0.19.0", |
|
|
"pre-commit >=2.17.0,<3.0.0", |
|
|
"pre-commit >=2.17.0,<3.0.0", |
|
|
] |
|
|
] |
|
@ -168,6 +168,7 @@ select = [ |
|
|
ignore = [ |
|
|
ignore = [ |
|
|
"E501", # line too long, handled by black |
|
|
"E501", # line too long, handled by black |
|
|
"B008", # do not perform function calls in argument defaults |
|
|
"B008", # do not perform function calls in argument defaults |
|
|
|
|
|
"C901", # too complex |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores] |
|
|
[tool.ruff.per-file-ignores] |
|
@ -178,7 +179,8 @@ ignore = [ |
|
|
"docs_src/dependencies/tutorial010.py" = ["F821"] |
|
|
"docs_src/dependencies/tutorial010.py" = ["F821"] |
|
|
"docs_src/custom_response/tutorial007.py" = ["B007"] |
|
|
"docs_src/custom_response/tutorial007.py" = ["B007"] |
|
|
"docs_src/dataclasses/tutorial003.py" = ["I001"] |
|
|
"docs_src/dataclasses/tutorial003.py" = ["I001"] |
|
|
|
|
|
"docs_src/path_operation_advanced_configuration/tutorial007.py" = ["B904"] |
|
|
|
|
|
"docs_src/custom_request_and_route/tutorial002.py" = ["B904"] |
|
|
|
|
|
|
|
|
[tool.ruff.isort] |
|
|
[tool.ruff.isort] |
|
|
known-third-party = ["fastapi", "pydantic", "starlette"] |
|
|
known-third-party = ["fastapi", "pydantic", "starlette"] |
|
|