Fix custom namespaces for modernpython#44
Open
tom-hg57 wants to merge 7 commits into
Open
Conversation
Contributor
tom-hg57
commented
Sep 6, 2025
- Update generated modernpython sources created by cimgen (https://github.com/sogno-platform/cimgen/tree/master)
- Change creation of constants for modernpython, generating now all namespaces in constants.py and correcting eu namespace for CGMES 3
- Add attribute_namespace to json_extra to handle custom attributes
- Fix json_dump error by setting attribute_class as str
- Add default implementation of Base.possible_profiles
- Add handling of namespaces to chevron_writer.py
- Improve handling of ruff and pyright warnings
- Add version to constants.py for modernpython (needed to test custom namespaces in unit tests)
- Adapt tests to new cimgen code
- Rename writer example acc. to renamed writer.py to chevron_writer.py
- Adapt examples to new cimgen code
- Add examples to ruff and pyright checks
- Adapt README.md to new cimgen code
- Fix enum comments for modernpython
…ub.com/sogno-platform/cimgen/tree/master) - Change creation of constants for modernpython, generating now all namespaces in constants.py and correcting eu namespace for CGMES 3 - Add attribute_namespace to json_extra to handle custom attributes - Fix json_dump error by setting attribute_class as str - Add default implementation of Base.possible_profiles - Add handling of namespaces to chevron_writer.py - Improve handling of ruff and pyright warnings - Add version to constants.py for modernpython (needed to test custom namespaces in unit tests) Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
Signed-off-by: Thomas Günther <tom@toms-cafe.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.