Skip to content

Add preamble section#45

Merged
bogdandm merged 4 commits intobogdandm:masterfrom
ialarmedalien:add_preamble_section
Sep 2, 2022
Merged

Add preamble section#45
bogdandm merged 4 commits intobogdandm:masterfrom
ialarmedalien:add_preamble_section

Conversation

@ialarmedalien
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
Owner

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

@ialarmedalien
Copy link
Copy Markdown
Contributor Author

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

@bogdandm
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@bogdandm change pushed

@bogdandm
Copy link
Copy Markdown
Owner

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

@ialarmedalien
Copy link
Copy Markdown
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
Copy Markdown
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