Skip to content

Commit d701fce

Browse files
committed
💄 update coding style
1 parent 70c064c commit d701fce

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ python_version= '3.6'
88

99
[packages]
1010
pybars3 = "*"
11-
lml = '>=0.0.7'
11+
lml = '>=0.1.0'
1212

1313
[dev-packages]
1414
nose = "*"

moban_handlebars/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
import moban.constants as constants
33
from lml.plugin import PluginInfo, PluginInfoChain
44

5+
from moban_handlebars.helpers import HandlebarHelper
56
from moban_handlebars._version import __author__, __version__
6-
7+
from moban_handlebars.partials import register_partial
78

89
PluginInfoChain(__name__).add_a_plugin_instance(
910
PluginInfo(
@@ -12,5 +13,3 @@
1213
tags=["handlebars", "hbs"],
1314
)
1415
)
15-
from moban_handlebars.helpers import HandlebarHelper
16-
from moban_handlebars.partials import register_partial

moban_handlebars/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
HELPER_EXTENSION = 'Handlebar-Helpers'
2-
PARTIALS_EXTENSION = 'Handlebar-Partials'
1+
HELPER_EXTENSION = "Handlebar-Helpers"
2+
PARTIALS_EXTENSION = "Handlebar-Partials"

moban_handlebars/engine.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from typing import Dict
2-
from lml.plugin import PluginManager
32

43
from pybars import Compiler
4+
from lml.plugin import PluginManager
55
from moban.externals import file_system
6+
67
from moban_handlebars.constants import HELPER_EXTENSION, PARTIALS_EXTENSION
78

89

@@ -61,6 +62,8 @@ def apply_template(self, template, data: Dict, _):
6162

6263
partials = PARTIALS.get_all()
6364
partials = dict(list(partials))
64-
rendered_content = "".join(template(data, helpers=helpers, partials=partials))
65+
rendered_content = "".join(
66+
template(data, helpers=helpers, partials=partials)
67+
)
6568
rendered_content = rendered_content
6669
return rendered_content

moban_handlebars/helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from lml.plugin import PluginInfo
2+
23
from moban_handlebars.constants import HELPER_EXTENSION
34

45

moban_handlebars/partials.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from pybars import Compiler
12
from lml.plugin import PluginInfo
3+
24
from moban_handlebars.constants import PARTIALS_EXTENSION
3-
from pybars import Compiler
45

56

67
def register_partial(identifier, partial):

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pybars3
2-
lml>=0.0.7
2+
lml>=0.1.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
INSTALL_REQUIRES = [
6565
"pybars3",
66-
"lml>=0.0.7",
66+
"lml>=0.1.0",
6767
]
6868
SETUP_COMMANDS = {}
6969

0 commit comments

Comments
 (0)