|
50 | 50 | The list of directories to run pytest on. Space-seperated
|
51 | 51 | required: true
|
52 | 52 | type: string
|
53 |
| - coverage-package: |
| 53 | + coverage_package: |
54 | 54 | description: The names of the Python package to get coverage for
|
55 | 55 | required: true
|
56 | 56 | type: string
|
57 |
| - flake8-packages: |
| 57 | + flake8_packages: |
58 | 58 | description: The names of the Python packages to run flake8 on.
|
59 | 59 | required: true
|
60 | 60 | type: string
|
|
79 | 79 | default: global_strict
|
80 | 80 | # global_relaxed and global_strict will use files in support scripts
|
81 | 81 | # Any other value will be looked for in the calling repository
|
82 |
| - pylint-packages: |
| 82 | + pylint_packages: |
83 | 83 | description: The names of the Python packages to run flake8 on.
|
84 | 84 | required: true
|
85 | 85 | type: string
|
86 |
| - pylint-disable: |
| 86 | + pylint_disable: |
87 | 87 | description: The pylint messages/categories to disable
|
88 | 88 | required: false
|
89 | 89 | type: string
|
|
93 | 93 | required: false
|
94 | 94 | type: string
|
95 | 95 | default: "31" # Action fails on any message
|
96 |
| - mypy-full_packages: |
| 96 | + mypy_full_packages: |
97 | 97 | description: >
|
98 | 98 | The names of the Python packages to run full mypy on.
|
99 | 99 | These are run in --disallow-untyped-defs mode
|
100 | 100 | required: false
|
101 | 101 | type: string
|
102 | 102 | default: ''
|
103 |
| - mypy-packages: |
| 103 | + mypy_packages: |
104 | 104 | description: >
|
105 | 105 | The names of Python packages to run simple mypy on.
|
106 | 106 | These are run in without --disallow-untyped-defs
|
|
127 | 127 | required: false
|
128 | 128 | type: string
|
129 | 129 | default: "doc/source"
|
130 |
| - run_cff-validator: |
| 130 | + run_cff_validator: |
131 | 131 | description: Flag to say if cff-validator should be run
|
132 | 132 | required: false
|
133 | 133 | type: string
|
@@ -172,38 +172,38 @@ jobs:
|
172 | 172 | directory: ${{ inputs.sphinx_directory }}
|
173 | 173 |
|
174 | 174 | - name: Validate CITATION.cff
|
175 |
| - if: ${{ inputs.run_cff-validator == 'true' }} |
| 175 | + if: ${{ inputs.run_cff_validator == 'true' }} |
176 | 176 | uses: dieghernan/cff-validator@main
|
177 | 177 | with:
|
178 | 178 | install-r: true
|
179 | 179 |
|
180 | 180 | - name: Lint with flake8
|
181 |
| - run: flake8 ${{ inputs.flake8-packages }} |
| 181 | + run: flake8 ${{ inputs.flake8_packages }} |
182 | 182 |
|
183 | 183 | - name: Lint with pylint
|
184 | 184 | uses: SpiNNakerManchester/SupportScripts/actions/pylint@main
|
185 | 185 | with:
|
186 |
| - package: ${{ inputs.pylint-packages }} |
187 |
| - disable: ${{ inputs.pylint-disable }} |
| 186 | + package: ${{ inputs.pylint_packages }} |
| 187 | + disable: ${{ inputs.pylint_disable }} |
188 | 188 | exitcheck: ${{ inputs.pylint_exitcheck }}
|
189 | 189 | rcfile: ${{ inputs.rcfile }}
|
190 | 190 | language: en_GB
|
191 | 191 |
|
192 | 192 | - name: Lint with mypy
|
193 |
| - if: ${{ inputs.mypy-packages != ''}} |
194 |
| - run: mypy --python-version ${{ matrix.python-version }} ${{ inputs.mypy-packages }} |
| 193 | + if: ${{ inputs.mypy_packages != ''}} |
| 194 | + run: mypy --python-version ${{ matrix.python-version }} ${{ inputs.mypy_packages }} |
195 | 195 |
|
196 | 196 | - name: Lint with mypy using disallow-untyped-def
|
197 |
| - if: ${{ inputs.mypy-full-packages != ''}} |
198 |
| - run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy-full-packages }} |
| 197 | + if: ${{ inputs.mypy_full_packages != ''}} |
| 198 | + run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy_full_packages }} |
199 | 199 |
|
200 | 200 | - name: Test with pytest
|
201 | 201 | if: ${{ inputs.test_directories != ''}}
|
202 | 202 | uses: SpiNNakerManchester/SupportScripts/actions/pytest@main
|
203 | 203 | with:
|
204 | 204 | tests: ${{ inputs.test_directories }}
|
205 |
| - coverage: ${{ matrix.coverage == 'coverage' && inputs.coverage-package != '' }} |
206 |
| - cover-packages: ${{ inputs.coverage-package }} |
| 205 | + coverage: ${{ matrix.coverage == 'coverage' && inputs.coverage_package != '' }} |
| 206 | + cover-packages: ${{ inputs.coverage_package }} |
207 | 207 | coveralls-token: ${{ secrets.GITHUB_TOKEN }}
|
208 | 208 | env:
|
209 | 209 | SPALLOC_USER: ${{ secrets.SPALLOC_USER }}
|
@@ -249,25 +249,25 @@ jobs:
|
249 | 249 |
|
250 | 250 | - name: Lint with flake8
|
251 | 251 | if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
|
252 |
| - run: flake8 ${{ inputs.flake8-packages }} |
| 252 | + run: flake8 ${{ inputs.flake8_packages }} |
253 | 253 |
|
254 | 254 | - name: Lint with pylint
|
255 | 255 | if: ${{ matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true' }}
|
256 | 256 | uses: SpiNNakerManchester/SupportScripts/actions/pylint@main
|
257 | 257 | with:
|
258 |
| - package: ${{ inputs.pylint-packages }} |
259 |
| - disable: ${{ inputs.pylint-disable }} |
| 258 | + package: ${{ inputs.pylint_packages }} |
| 259 | + disable: ${{ inputs.pylint_disable }} |
260 | 260 | exitcheck: ${{ inputs.pylint_exitcheck }}
|
261 | 261 | rcfile: ${{ inputs.rcfile }}
|
262 | 262 | language: en_GB
|
263 | 263 |
|
264 | 264 | - name: Lint with mypy
|
265 |
| - if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.mypy-packages != '' }} |
266 |
| - run: mypy --python-version ${{ matrix.python-version }} ${{ inputs.mypy-packages }} |
| 265 | + if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.mypy_packages != '' }} |
| 266 | + run: mypy --python-version ${{ matrix.python-version }} ${{ inputs.mypy_packages }} |
267 | 267 |
|
268 | 268 | - name: Lint with mypy using disallow-untyped-def
|
269 |
| - if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.mypy-full-packages != '' }} |
270 |
| - run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy-full-packages }} |
| 269 | + if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.mypy_full_packages != '' }} |
| 270 | + run: mypy --python-version ${{ matrix.python-version }} --disallow-untyped-defs ${{ inputs.mypy_full_packages }} |
271 | 271 |
|
272 | 272 | - name: Test with pytest
|
273 | 273 | if: ${{ (matrix.python-version != env.PRERELEASE || inputs.check_prereleases == 'true') && inputs.test_directories != ''}}
|
|
0 commit comments