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
Create template filtertransformer BaseTransformer #287
Conversation
8066493
to
59d693e
Compare
Codecov Report
@@ Coverage Diff @@
## master #287 +/- ##
==========================================
+ Coverage 92.20% 93.27% +1.06%
==========================================
Files 61 60 -1
Lines 3246 3256 +10
==========================================
+ Hits 2993 3037 +44
+ Misses 253 219 -34
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The |
c920645
to
d5d2928
Compare
a832c7f
to
0703397
Compare
0703397
to
9d0918e
Compare
9d0918e
to
ae05c78
Compare
- Raise deprecation warning for DjangoTransformer - Removed debug/json transformers - Tweaked basetransformer docstrings
ae05c78
to
b8cc2aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks @ml-evs!
Are there any actual changes in the grammar?
I think "Return as is." is more telling than "Do nothing!" - so I have suggested this change everywhere. There are also some other comments, but only suggestions.
Co-authored-by: Casper Welzel Andersen <43357585+CasperWA@users.noreply.github.com>
Here's a first pass at a
BaseTransformer
. I think we need to discuss what to do with the Django, JSON and TransformerSkeleton and elasticsearch transformers, plus all the grammar variants... I haven't really gotten my head around how lark interacts with these magic-word methods, and how we currently have different method names between al the transformers.For now, I've made most of the
BaseTransformer
methods abstract, apart from those that do very simple things (i.e. take in a value and return value).Lark2Django
/DjangoTransformer
, which is working from 0.9.7 grammar and will be tricky to adaptJSONTransformer
andDebugTransformer
(and updated docs)BaseTransformer
and pulled mongo functionality outv1.0.0
grammar that links tov0.10.1