diff --git a/{{ cookiecutter.project_name.lower().replace(' ', '-') }}/pyproject.toml b/{{ cookiecutter.project_name.lower().replace(' ', '-') }}/pyproject.toml index e1760a3..43a32c2 100644 --- a/{{ cookiecutter.project_name.lower().replace(' ', '-') }}/pyproject.toml +++ b/{{ cookiecutter.project_name.lower().replace(' ', '-') }}/pyproject.toml @@ -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