update ruff to 0.0.120 to solve flake8-bugbear issue

This commit is contained in:
Jakub Miazek
2022-11-15 08:42:19 +01:00
parent 707124eb52
commit 94bbb885e8
2 changed files with 36 additions and 39 deletions

View File

@@ -34,22 +34,19 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
select = ["E", "F", "U", "N", "C", "B"]
ignore = ["B008"]
# B008 - Do not perform function calls in argument defaults. https://github.com/tiangolo/fastapi/issues/1522
# B008 - fixed https://github.com/charliermarsh/ruff/releases/tag/v0.0.115
# Exclude a variety of commonly ignored directories.
exclude = [
"alembic",
]
exclude = ["alembic",]
# Assume Python 3.10.
target-version = "py310"
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.flake8-bugbear]
extend-immutable-calls = ["fastapi.Depends",]
[tool.pytest.ini_options]
addopts = "-v --doctest-modules --doctest-glob=*.md --ignore=alembic"
asyncio_mode = "strict"