Skip to content

Commit

Permalink
Adjust flake8 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
a1d4r committed May 11, 2024
1 parent 3a947bd commit b9be0c7
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,15 @@ allowed-confusables = [
"RUF001", # String contains ambiguous letter
]

[tool.ruff.lint.flake8-tidy-imports] # https://docs.astral.sh/ruff/settings/#flake8-tidy-imports
[tool.ruff.lint.flake8-tidy-imports] # https://docs.astral.sh/ruff/settings/#lintflake8-tidy-imports
ban-relative-imports = "all"

[tool.ruff.lint.flake8-boolean-trap] # https://docs.astral.sh/ruff/settings/#lintflake8-bugbear
extend-allowed-calls = ["pydantic.Field", "django.db.models.Value"]

[tool.ruff.lint.flake8-bugbear] # https://docs.astral.sh/ruff/settings/#lintflake8-bugbear
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query", "fastapi.Path", "fastapi.Body", "fastapi_filter.FilterDepends"]

[tool.ruff.lint.isort] # https://docs.astral.sh/ruff/settings/#isort
section-order = ["future", "typing", "standard-library", "third-party", "first-party", "local-folder"]
lines-between-types = 1
Expand Down

0 comments on commit b9be0c7

Please sign in to comment.