File tree 7 files changed +10
-11
lines changed
7 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 21
21
yamllint -d " {extends: default, ignore: .moban.cd/changelog.yml}" .
22
22
23
23
format :
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
30
25
31
26
uml :
32
27
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__
3
2
4
3
__all__ = ("__author__" , "__version__" )
Original file line number Diff line number Diff line change 7
7
from jinja2 import Environment
8
8
from lml .loader import scan_plugins_regex
9
9
from lml .plugin import PluginInfo , PluginManager
10
- from jinja2_fsloader import FSLoader
11
10
from jinja2 .exceptions import TemplateNotFound , TemplateSyntaxError
12
11
13
12
from moban import constants , exceptions
13
+ from jinja2_fsloader import FSLoader
14
14
from moban .externals import file_system
15
15
16
16
JINJA2_LIBRARIES = "^moban_jinja2_.+$"
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ targets:
26
26
- min_requirements.txt: min_requirements.txt.jj2
27
27
- ".github/workflows/pythonpublish.yml": "pythonpublish.yml"
28
28
- "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():
268
268
@patch ("subprocess.check_call" )
269
269
def test_pip_install (fake_check_all ):
270
270
import sys
271
+
271
272
from moban .deprecated import pip_install
272
273
273
274
pip_install (["package1" , "package2" ])
Original file line number Diff line number Diff line change @@ -30,9 +30,10 @@ def test_handle_moban_file(self):
30
30
main .handle_moban_file (self .moban_file , {})
31
31
32
32
def test_check_none (self ):
33
- import moban .main as main
34
33
from ruamel .yaml import YAML
35
34
35
+ import moban .main as main
36
+
36
37
yaml = YAML ()
37
38
38
39
invalid_data = [
You can’t perform that action at this time.
0 commit comments