Skip to content


Code generated by datamodel-codegen will be passed through isort and black to produce consistent, well-formatted results. Settings for these tools can be specified in pyproject.toml (located in the output directory, or in some parent of the output directory).

Example pyproject.toml:

skip-string-normalization = true
line-length = 100

multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 100
known_first_party = "kelvin"

See the Black Project for more information.