Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions generators/app/templates/common/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,13 @@ runtime-evaluated-base-classes = ["pydantic.BaseModel"]
# Allow missing docstrings for tests
"tests/**/*.py" = ["D1"]

<% if (pythonVersion[0:3] == "3.9") { -%>
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
# see https://docs.astral.sh/ruff/settings/#lintpyupgrade
keep-runtime-typing = true
<% } -%>

## mypy

[tool.mypy]
Expand Down