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

Add preamble section #45

Merged
merged 4 commits into from
Sep 2, 2022
Merged

Conversation

ialarmedalien
Copy link
Contributor

This PR enables extra matter to be added between the imports and the generated class list using a --preamble command line parameter.

I also fixed a few minor grammar bits and my IDE automatically removes trailing whitespace.

Closes #44

@coveralls
Copy link

coveralls commented Aug 29, 2022

Coverage Status

Coverage increased (+0.009%) to 97.964% when pulling 86caba8 on ialarmedalien:add_preamble_section into ebf9d0a on bogdandm:master.

@bogdandm
Copy link
Owner

Thank you for this pr, seems good except for this small formatting bug.

@ialarmedalien
Copy link
Contributor Author

Do you want me to add a note to the changelog and bump the version too?

@bogdandm
Copy link
Owner

No, the changelog is generated automatically and the version is updated with a single command (and the release is done by the github action). So I'll do it myself.

@ialarmedalien
Copy link
Contributor Author

@bogdandm change pushed

@bogdandm
Copy link
Owner

Test fails now :( AttributeError: 'NoneType' object has no attribute 'strip'

@ialarmedalien
Copy link
Contributor Author

Should be fixed now, with another test added to ensure that the strip() operation works.

@bogdandm bogdandm merged commit 9be61fd into bogdandm:master Sep 2, 2022
@bogdandm
Copy link
Owner

bogdandm commented Sep 2, 2022

0.2.6 released https://github.com/bogdandm/json2python-models/releases/tag/v0.2.6

@ialarmedalien ialarmedalien deleted the add_preamble_section branch September 2, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add section after imports and before dependencies
3 participants