Skip to content

Commit 8dfabb6

Browse files
committed
debug
1 parent a86300b commit 8dfabb6

File tree

2 files changed

+60
-64
lines changed

2 files changed

+60
-64
lines changed

.github/workflows/all-lints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v1
1111
- uses: marian-code/pyaction@master
1212
with:
13-
python-root-list: "./tests/'*'.py ./tests/subtests/'*'.py"
13+
python-root-list: "'./tests/*.py ./tests/subtests/*.py'"
1414
use-black: true
1515
use-isort: true
1616
use-mypy: true

entrypoint.sh

Lines changed: 59 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,41 @@
22

33
# Parameters
44
#
5-
# $1 - use-pylint
6-
# $2 - use-pycodestyle
7-
# $3 - use-flake8
8-
# $4 - use-black
9-
# $5 - use-mypy
10-
# $6 - use-isort
11-
# $7 - use-vulture
12-
# $8 - use-pydocstyle
13-
# $9 - extra-pylint-options
14-
# $10 - extra-pycodestyle-options
15-
# $11 - extra-flake8-options
16-
# $12 - extra-black-options
17-
# $13 - extra-mypy-options
18-
# $14 - extra-isort-options
19-
# $15 - extra-vulture-options
20-
# $16 - extra-pydocstyle-options
21-
# $@ - python-root-list
22-
23-
echo use-pylint: $1
24-
echo use-pycodestyle: $2
25-
echo use-flake8: $3
26-
echo use-black: $4
27-
echo use-mypy: $5
28-
echo use-isort: $6
29-
echo use-vulture: $7
30-
echo use-pydocstyle: $8
31-
echo extra-pylint-options: $9
32-
echo extra-pycodestyle-options: $10
33-
echo extra-flake8-options: $11
34-
echo extra-black-options: $12
35-
echo extra-mypy-options: $13
36-
echo extra-isort-options: $14
37-
echo extra-vulture-options: $15
38-
echo extra-pydocstyle-options: $16
39-
# rename command line arguments so tha last argument receives what is remaining
40-
# change this number if more lintners are added
41-
shift 16
42-
echo python-root-list: $@
5+
# $1 - python-root-list
6+
# $2 - use-pylint
7+
# $3 - use-pycodestyle
8+
# $4 - use-flake8
9+
# $5 - use-black
10+
# $6 - use-mypy
11+
# $7 - use-isort
12+
# $8 - use-vulture
13+
# $9 - use-pydocstyle
14+
# $10 - extra-pylint-options
15+
# ${11} - extra-pycodestyle-options
16+
# ${12} - extra-flake8-options
17+
# ${13} - extra-black-options
18+
# ${14} - extra-mypy-options
19+
# ${15} - extra-isort-options
20+
# ${16} - extra-vulture-options
21+
# ${17} - extra-pydocstyle-options
22+
23+
echo python-root-list: $1
24+
echo use-pylint: $2
25+
echo use-pycodestyle: $3
26+
echo use-flake8: $4
27+
echo use-black: $5
28+
echo use-mypy: $6
29+
echo use-isort: $7
30+
echo use-vulture: $8
31+
echo use-pydocstyle $9
32+
echo extra-pylint-options: $10
33+
echo extra-pycodestyle-options: $11
34+
echo extra-flake8-options: $12
35+
echo extra-black-options: $13
36+
echo extra-mypy-options: $14
37+
echo extra-isort-options: $15
38+
echo extra-vulture-options: $16
39+
echo extra-pydocstyle-options: $17
4340

4441
# actions path has the copy of this actions repo
4542
for matcher in $GITHUB_ACTION_PATH/matchers/*.json
@@ -50,11 +47,11 @@ done
5047
echo "TERM: changing from $TERM -> xterm"
5148
export TERM=xterm
5249

53-
if [ "$1" = true ] ; then
50+
if [ "$2" = true ] ; then
5451

55-
echo Running: pylint $8 $@
52+
echo Running: pylint $9 $1
5653

57-
$CONDA/bin/pylint --output-format="colorized" $8 $@
54+
$CONDA/bin/pylint --output-format="colorized" $9 $1
5855
exit_code=$?
5956

6057
if [ "$exit_code" = "0" ]; then
@@ -65,12 +62,11 @@ if [ "$1" = true ] ; then
6562

6663
fi
6764

65+
if [ "$3" = true ] ; then
6866

69-
if [ "$2" = true ] ; then
70-
71-
echo Running: pycodestyle ${10} $@
67+
echo Running: pycodestyle ${11} $1
7268

73-
$CONDA/bin/pycodestyle ${10} $@
69+
$CONDA/bin/pycodestyle ${11} $1
7470
exit_code=$?
7571

7672
if [ "$exit_code" = "0" ]; then
@@ -81,11 +77,11 @@ if [ "$2" = true ] ; then
8177

8278
fi
8379

84-
if [ "$3" = true ] ; then
80+
if [ "$4" = true ] ; then
8581

86-
echo Running: flake8 ${11} $@
82+
echo Running: flake8 ${12} $1
8783

88-
$CONDA/bin/flake8 ${11} $@
84+
$CONDA/bin/flake8 ${12} $1
8985
exit_code=$?
9086

9187
if [ "$exit_code" = "0" ]; then
@@ -96,11 +92,11 @@ if [ "$3" = true ] ; then
9692

9793
fi
9894

99-
if [ "$4" = true ] ; then
95+
if [ "$5" = true ] ; then
10096

101-
echo Running: black --check ${12} $@
97+
echo Running: black --check ${13} $1
10298

103-
$CONDA/bin/black --check ${12} $@
99+
$CONDA/bin/black --check ${13} $1
104100
exit_code=$?
105101

106102
if [ "$exit_code" = "0" ]; then
@@ -111,11 +107,11 @@ if [ "$4" = true ] ; then
111107

112108
fi
113109

114-
if [ "$5" = true ] ; then
110+
if [ "$6" = true ] ; then
115111

116-
echo Running: mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ${13} $@
112+
echo Running: mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ${14} $1
117113

118-
$CONDA/bin/mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ${13} $@
114+
$CONDA/bin/mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers ${14} $1
119115
exit_code=$?
120116

121117
if [ "$exit_code" = "0" ]; then
@@ -126,11 +122,11 @@ if [ "$5" = true ] ; then
126122

127123
fi
128124

129-
if [ "$6" = true ] ; then
125+
if [ "$7" = true ] ; then
130126

131-
echo Running: isort ${14} $@ -c --diff
127+
echo Running: isort ${15} $1 -c --diff
132128

133-
$CONDA/bin/isort ${14} $@ -c --diff
129+
$CONDA/bin/isort ${15} $1 -c --diff
134130
exit_code=$?
135131

136132
if [ "$exit_code" = "0" ]; then
@@ -141,11 +137,11 @@ if [ "$6" = true ] ; then
141137

142138
fi
143139

144-
if [ "$7" = true ] ; then
140+
if [ "$8" = true ] ; then
145141

146-
echo Running: vulture ${15} $@
142+
echo Running: vulture ${16} $1
147143

148-
$CONDA/bin/vulture ${15} $@
144+
$CONDA/bin/vulture ${16} $1
149145
exit_code=$?
150146

151147
if [ "$exit_code" = "0" ]; then
@@ -156,11 +152,11 @@ if [ "$7" = true ] ; then
156152

157153
fi
158154

159-
if [ "$8" = true ] ; then
155+
if [ "$9" = true ] ; then
160156

161-
echo Running: pydocstyle ${16} $@
157+
echo Running: pydocstyle ${17} $1
162158

163-
$CONDA/bin/pydocstyle ${16} $@
159+
$CONDA/bin/pydocstyle ${17} $1
164160
exit_code=$?
165161

166162
if [ "$exit_code" = "0" ]; then

0 commit comments

Comments
 (0)