File tree Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Expand file tree Collapse file tree 7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 2121 yamllint -d " {extends: default, ignore: .moban.cd/changelog.yml}" .
2222
2323format :
24- isort $(find moban -name "*.py"|xargs echo ) $(find tests -name "*.py"|xargs echo )
25- git diff
26- black -l 79 moban
27- git diff
28- black -l 79 tests
29- git diff
24+ bash format.sh
3025
3126uml :
3227 plantuml -tsvg -o ./images/ docs/* .uml
Original file line number Diff line number Diff line change 1+ isort $( find moban -name " *.py" | xargs echo) $( find tests -name " *.py" | xargs echo)
2+ black -l 79 moban
3+ black -l 79 tests
Original file line number Diff line number Diff line change 1- from moban ._version import __version__
2- from moban ._version import __author__
1+ from moban ._version import __author__ , __version__
32
43__all__ = ("__author__" , "__version__" )
Original file line number Diff line number Diff line change 77from jinja2 import Environment
88from lml .loader import scan_plugins_regex
99from lml .plugin import PluginInfo , PluginManager
10- from jinja2_fsloader import FSLoader
1110from jinja2 .exceptions import TemplateNotFound , TemplateSyntaxError
1211
1312from moban import constants , exceptions
13+ from jinja2_fsloader import FSLoader
1414from moban .externals import file_system
1515
1616JINJA2_LIBRARIES = "^moban_jinja2_.+$"
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ targets:
2626 - min_requirements.txt: min_requirements.txt.jj2
2727 - ".github/workflows/pythonpublish.yml": "pythonpublish.yml"
2828 - "CONTRIBUTORS.rst": "CONTRIBUTORS.rst.jj2"
29-
29+ - format.sh: format.sh.jj2
Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ def test_mkdir_p():
268268@patch ("subprocess.check_call" )
269269def test_pip_install (fake_check_all ):
270270 import sys
271+
271272 from moban .deprecated import pip_install
272273
273274 pip_install (["package1" , "package2" ])
Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ def test_handle_moban_file(self):
3030 main .handle_moban_file (self .moban_file , {})
3131
3232 def test_check_none (self ):
33- import moban .main as main
3433 from ruamel .yaml import YAML
3534
35+ import moban .main as main
36+
3637 yaml = YAML ()
3738
3839 invalid_data = [
You can’t perform that action at this time.
0 commit comments