Skip to content

Commit af4bebf

Browse files
committed
📰 add format.sh
1 parent e6226a2 commit af4bebf

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.moban.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ targets:
2727
- "azure-pipelines.yml": "azure/azure-pipelines.yml"
2828
- ".azure-pipelines-steps-macos.yml": "azure/pipelines-steps-macos.yml"
2929
- ".azure-pipelines-steps.yml": "azure/pipelines-steps.yml"
30+
- Makefile: Makefile.jj2
31+
- format.sh: format.sh.jj2

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ lint:
1313
bash lint.sh
1414

1515
format:
16-
isort -y $(find moban_jinja2_github -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
17-
black -l 79 moban_jinja2_github
18-
black -l 79 tests
16+
bash format.sh
1917

2018
git-diff-check:
2119
git diff --exit-code

format.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
isort $(find moban_jinja2_github -name "*.py"|xargs echo) $(find tests -name "*.py"|xargs echo)
2+
black -l 79 moban_jinja2_github
3+
black -l 79 tests

0 commit comments

Comments
 (0)