Skip to content

Conversation

@chfw
Copy link
Member

@chfw chfw commented Nov 18, 2018

CLiu13 and others added 9 commits November 14, 2018 22:00
This adds new global variables for the target and template files.

Closes #29
✨ Add new target and template global variables
* 🔨 code refactoring

* 🔨 format code

* 🔨 pump up the version

* 💚 fix the problem with the import. mysteriously, moban.extensions works but relocating it to moban.jinja2.extension wont do

* 🔨 code refactoring

* ✨ code refactoring

* 🔨 code refactoring on jinja2 engine

* 🔨 code refactoring

* 🔨 load handle_bar by default for now

* 💚 include pybars3 as temp requirements to pass unit tests

* 🐛 fix a typo

* 🔨 allow base engine to have constructor that has more shared code

* :tructor: rename engine_factory

* 🔨 code refactor jinja2 engine

* 🔥 remove duplicated find template file

* 🔥 remove useless function

* 🔥 remove logging
…ny to come (#131)

* 🔨 clarify engine interface

* 🔨 minor tuning

* 🔥 strip the extra responsibility from engine: 1) is there a change 2) where is the template on file system.

* 💄 format code

* 🔥 remove if py2 do something else do others for open. because codecs is python 2 and 3 compactible

* :sparles: test the handle bar engine separately. it will be easy for up-coming separation

* 🔥 remove useless proxy function

* 💄 code formatting

* :micrscope: test newly create class interfaces

* 🔥 label output is not used for handlebar engine

* 📚 document engine interface

* 💚 make flake8 happy on the coding style
* 🔨 further optimization. all jinja2 related code should go in jinja2 folder

* 🚜 all jinja2 extensions shall live in jinja2 folder.

* :micrscope: add jinja2 extensions test

* 💚 keep two stage lml loading. Althrough it is not yet understood why, it works.

* 🐛 fix loading bug. otherwise, Error: jinja2

* 📚 make notes on critical code lines
* 🔥 separate handlebars to moban-handlebars

* 🐛 fix get_primary_key will fail when a module is loaded later. fix #8. and remove pybars3

* 📚 update handlebars usage

* 🐛 moban hash does not work because trailing new line was not removed when the hash is calculated but is removed when saving the files. hence moban think the file is always updated. 🔥 remove engine handlebars loading

* 📚 update conf.py from pypi-mobans-pkg

* 💚 use moban-handlebars git repo for testing

* 📚 update change log, docs and correct typepos
@chfw chfw requested review from PrajwalM2212 and jayvdb November 18, 2018 13:24
@codecov-io
Copy link

codecov-io commented Nov 18, 2018

Codecov Report

Merging #135 into master will decrease coverage by 0.13%.
The diff coverage is 98.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
- Coverage   98.57%   98.44%   -0.14%     
==========================================
  Files          38       39       +1     
  Lines        1896     1800      -96     
==========================================
- Hits         1869     1772      -97     
- Misses         27       28       +1
Impacted Files Coverage Δ
moban/_version.py 100% <100%> (ø) ⬆️
tests/test_jinja2_engine.py 100% <100%> (ø)
moban/jinja2/engine.py 100% <100%> (ø)
tests/test_context.py 100% <100%> (ø) ⬆️
tests/test_docs.py 100% <100%> (ø) ⬆️
moban/main.py 100% <100%> (ø) ⬆️
tests/test_filter_repr.py 100% <100%> (ø) ⬆️
tests/test_utils.py 100% <100%> (ø) ⬆️
tests/test_filter_github.py 100% <100%> (ø) ⬆️
tests/test_jinja2_extensions.py 100% <100%> (ø)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b12b89e...b9ebbd0. Read the comment docs.

@chfw chfw closed this Nov 18, 2018
@chfw chfw reopened this Nov 18, 2018
@chfw chfw merged commit bd4b7a5 into master Nov 18, 2018
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.

4 participants