Skip to content

Commit 026078f

Browse files
committed
chore: move docformatter to first
1 parent 2feac44 commit 026078f

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

entrypoint.sh

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@
2020
# ${16} - extra-docformatter-options
2121
# ${17} - extra-pydocstyle-options
2222

23+
if [ "$8" = true ] ; then
24+
25+
echo Running: docformatter ${16} $1
26+
27+
docformatter ${16} $1
28+
exit_code=$?
29+
30+
if [ "$exit_code" = "0" ]; then
31+
echo "docformetter ok"
32+
else
33+
echo "docformatter error"
34+
echo $exit_code
35+
fi
36+
fi
37+
2338
if [ "$2" = true ] ; then
2439

2540
echo Running: pylint ${10} $1
@@ -53,6 +68,21 @@ if [ "$3" = true ] ; then
5368

5469
fi
5570

71+
if [ "$9" = true ] ; then
72+
73+
echo Running: pydocstyle ${17} $1
74+
75+
pydocstyle ${17} $1
76+
exit_code=$?
77+
78+
if [ "$exit_code" = 0 ]; then
79+
echo "pydocstyle ok"
80+
else
81+
echo "pydocstyle error"
82+
echo $exit_code
83+
fi
84+
fi
85+
5686
if [ "$4" = true ] ; then
5787

5888
echo Running: flake8 ${12} $1
@@ -117,33 +147,3 @@ if [ "$7" = true ] ; then
117147

118148
fi
119149

120-
if [ "$8" = true ] ; then
121-
122-
echo Running: docformatter ${16} $1
123-
124-
docformatter ${16} $1
125-
exit_code=$?
126-
127-
if [ "$exit_code" = "0" ]; then
128-
echo "docformetter ok"
129-
else
130-
echo "docformatter error"
131-
echo $exit_code
132-
fi
133-
fi
134-
135-
if [ "$9" = true ] ; then
136-
137-
echo Running: pydocstyle ${17} $1
138-
139-
pydocstyle ${17} $1
140-
exit_code=$?
141-
142-
if [ "$exit_code" = 0 ]; then
143-
echo "pydocstyle ok"
144-
else
145-
echo "pydocstyle error"
146-
echo $exit_code
147-
fi
148-
fi
149-

0 commit comments

Comments
 (0)