Skip to content

Commit a90bd05

Browse files
style: apply ruff format to src/schemaforge/generators/django_generator.py
1 parent 198d44f commit a90bd05

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎src/schemaforge/generators/django_generator.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Generator: SchemaForge IR → Django model schema."""
2+
23
from __future__ import annotations
34

45
from ..ir import Column, ColumnType, Schema
@@ -102,7 +103,9 @@ def _generate_model(self, table) -> str:
102103

103104
def _field_def(self, col: Column) -> str:
104105
"""Generate a Django model field definition."""
105-
django_field = resolve_type(col, self._FIELD_MAP, fmt="django", type_config=self._type_config)
106+
django_field = resolve_type(
107+
col, self._FIELD_MAP, fmt="django", type_config=self._type_config
108+
)
106109
if not django_field.endswith("Field"):
107110
django_field = django_field + "Field"
108111

0 commit comments

Comments
 (0)