Skip to content

Commit a86300b

Browse files
committed
debug
1 parent 9b016ab commit a86300b

File tree

2 files changed

+61
-58
lines changed

2 files changed

+61
-58
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ runs:
9292
name: Install lintners
9393
- run: >
9494
${{ github.action_path }}/entrypoint.sh
95-
${{ inputs.python-root-list }}
9695
${{ inputs.use-pylint }}
9796
${{ inputs.use-pycodestyle }}
9897
${{ inputs.use-flake8 }}
@@ -109,5 +108,6 @@ runs:
109108
${{ inputs.extra-isort-options }}
110109
${{ inputs.extra-vulture-options }}
111110
${{ inputs.extra-pydocstyle-options }}
111+
${{ inputs.python-root-list }}
112112
shell: bash
113113
name: Lint

entrypoint.sh

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

33
# Parameters
44
#
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
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
1313
# $9 - extra-pylint-options
14-
# $10 - extra-pydocstyle-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
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
3131
echo extra-pylint-options: $9
32-
echo extra-pydocstyle-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
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: $@
4043

4144
# actions path has the copy of this actions repo
4245
for matcher in $GITHUB_ACTION_PATH/matchers/*.json
@@ -47,11 +50,11 @@ done
4750
echo "TERM: changing from $TERM -> xterm"
4851
export TERM=xterm
4952

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

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

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

5760
if [ "$exit_code" = "0" ]; then
@@ -63,11 +66,11 @@ if [ "$2" = true ] ; then
6366
fi
6467

6568

66-
if [ "$3" = true ] ; then
69+
if [ "$2" = true ] ; then
6770

68-
echo Running: pycodestyle ${11} $1
71+
echo Running: pycodestyle ${10} $@
6972

70-
$CONDA/bin/pycodestyle ${11} $1
73+
$CONDA/bin/pycodestyle ${10} $@
7174
exit_code=$?
7275

7376
if [ "$exit_code" = "0" ]; then
@@ -78,11 +81,11 @@ if [ "$3" = true ] ; then
7881

7982
fi
8083

81-
if [ "$4" = true ] ; then
84+
if [ "$3" = true ] ; then
8285

83-
echo Running: flake8 ${12} $1
86+
echo Running: flake8 ${11} $@
8487

85-
$CONDA/bin/flake8 ${12} $1
88+
$CONDA/bin/flake8 ${11} $@
8689
exit_code=$?
8790

8891
if [ "$exit_code" = "0" ]; then
@@ -93,11 +96,11 @@ if [ "$4" = true ] ; then
9396

9497
fi
9598

96-
if [ "$5" = true ] ; then
99+
if [ "$4" = true ] ; then
97100

98-
echo Running: black --check ${13} $1
101+
echo Running: black --check ${12} $@
99102

100-
$CONDA/bin/black --check ${13} $1
103+
$CONDA/bin/black --check ${12} $@
101104
exit_code=$?
102105

103106
if [ "$exit_code" = "0" ]; then
@@ -108,11 +111,11 @@ if [ "$5" = true ] ; then
108111

109112
fi
110113

111-
if [ "$6" = true ] ; then
114+
if [ "$5" = true ] ; then
112115

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

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

118121
if [ "$exit_code" = "0" ]; then
@@ -123,11 +126,11 @@ if [ "$6" = true ] ; then
123126

124127
fi
125128

126-
if [ "$7" = true ] ; then
129+
if [ "$6" = true ] ; then
127130

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

130-
$CONDA/bin/isort ${15} $1 -c --diff
133+
$CONDA/bin/isort ${14} $@ -c --diff
131134
exit_code=$?
132135

133136
if [ "$exit_code" = "0" ]; then
@@ -138,11 +141,11 @@ if [ "$7" = true ] ; then
138141

139142
fi
140143

141-
if [ "$8" = true ] ; then
144+
if [ "$7" = true ] ; then
142145

143-
echo Running: vulture ${16} $1
146+
echo Running: vulture ${15} $@
144147

145-
$CONDA/bin/vulture ${16} $1
148+
$CONDA/bin/vulture ${15} $@
146149
exit_code=$?
147150

148151
if [ "$exit_code" = "0" ]; then
@@ -153,11 +156,11 @@ if [ "$8" = true ] ; then
153156

154157
fi
155158

156-
if [ "$9" = true ] ; then
159+
if [ "$8" = true ] ; then
157160

158-
echo Running: pydocstyle ${17} $1
161+
echo Running: pydocstyle ${16} $@
159162

160-
$CONDA/bin/pydocstyle ${17} $1
163+
$CONDA/bin/pydocstyle ${16} $@
161164
exit_code=$?
162165

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

0 commit comments

Comments
 (0)