Skip to content

Commit

Permalink
Change: Adjust mypy action
Browse files Browse the repository at this point in the history
Mark packages input  as deprecated and add mypy-arguments instead. Drop
passing version to poetry action.
  • Loading branch information
bjoernricks committed May 16, 2023
1 parent 0254318 commit af25719
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mypy-python/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ description: "An action that verifies python type hints by using mypy"
inputs:
packages:
description: "Python packages to check with mypy"
deprecationMessage: "packages input is deprecated. Please use `mypy-arguments` input instead."
required: true
version:
description: "Python version that should be installed. Deprecated: Use `python-version` input instead."
deprecationMessage: "version input is deprecated. Please use `python-version` input instead."
mypy-arguments:
description: "Additional arguments for running mypy"
default: ""
python-version:
description: "Python version that should be installed"
default: "3.10"
Expand All @@ -32,15 +36,12 @@ runs:
- name: Install poetry
uses: greenbone/actions/poetry@v2
with:
version: ${{ inputs.version }}
python-version: ${{ inputs.python-version }}
poetry-version: ${{ inputs.poetry-version }}
cache: ${{ inputs.cache }}
cache-dependency-path: ${{ inputs.cache-dependency-path }}
cache-poetry-installation: ${{ inputs.cache-poetry-installation }}
- run: echo "Running mypy"
shell: bash
- run: poetry run mypy ${{ inputs.packages }}
- run: poetry run mypy ${{ inputs.mypy-arguments }} ${{ inputs.packages }}
shell: bash
name: Check with mypy
working-directory: ${{ github.workspace }}

0 comments on commit af25719

Please sign in to comment.