Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for pyproject.toml #188

Closed
joshbode opened this issue Jul 30, 2020 · 3 comments
Closed

Support for pyproject.toml #188

joshbode opened this issue Jul 30, 2020 · 3 comments
Labels
enhancement New feature or request released

Comments

@joshbode
Copy link
Contributor

datamodel-codegen is gaining a lot of command-line options which is great, but it can make the invocation quite lengthy.

How about adding support for a pyproject.toml section, e.g.

[tool.datamodel-codegen]
field-constraints = true
snake-case-field = true
strip-default-none = false
target-python-version = "3.7"

I'm happy to add this if there is desire for this feature :)

@koxudaxi
Copy link
Owner

@joshbode
I agree.
I recently want the same feature 😄

I will implement it 🚀

@koxudaxi koxudaxi added the enhancement New feature or request label Jul 31, 2020
@koxudaxi
Copy link
Owner

koxudaxi commented Aug 2, 2020

@joshbode
I have implemented the feature and released a new version as 0.5.23.

@joshbode
Copy link
Contributor Author

joshbode commented Aug 2, 2020

Fantastic - thank you!
I'll try it out today :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

2 participants