Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Test #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ inputs:
description: "Set desired python version with this keyword"
required: false
default: "3.8"
cache-type:
description: "Set cache for setup python"
required: true
default: "poetry"

runs:
using: "composite"
Expand All @@ -90,7 +94,7 @@ runs:
python-version: ${{ inputs.python-version }}
architecture: x64
cache: ${{ inputs.cache-type }}

- run: python --version
shell: bash

Expand Down Expand Up @@ -127,7 +131,7 @@ runs:
'${{ inputs.extra-isort-options }}'
'${{ inputs.extra-vulture-options }}'
'${{ inputs.extra-pydocstyle-options }}'
${{ inputs.command }}
'${{ inputs.command }}'
shell: pwsh

- name: Lint on Linux
Expand All @@ -151,5 +155,5 @@ runs:
'${{ inputs.extra-isort-options }}'
'${{ inputs.extra-vulture-options }}'
'${{ inputs.extra-pydocstyle-options }}'
${{ inputs.command }}
'${{ inputs.command }}'
shell: bash
16 changes: 8 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export TERM=xterm

if [ "$2" = true ] ; then

echo Running: pylint ${10} $1
echo Running: ${18} pylint ${10} $1

${18} pylint --output-format="colorized" ${10} $1
exit_code=$?
Expand All @@ -72,7 +72,7 @@ fi

if [ "$3" = true ] ; then

echo Running: pycodestyle ${11} $1
echo Running: ${18} pycodestyle ${11} $1

${18} pycodestyle ${11} $1
exit_code=$?
Expand All @@ -87,7 +87,7 @@ fi

if [ "$4" = true ] ; then

echo Running: flake8 ${12} $1
echo Running: ${18} flake8 ${12} $1

${18} flake8 ${12} $1
exit_code=$?
Expand All @@ -102,7 +102,7 @@ fi

if [ "$5" = true ] ; then

echo Running: black --check ${13} $1
echo Running: ${18} black --check ${13} $1

${18} black --check ${13} $1
exit_code=$?
Expand All @@ -117,7 +117,7 @@ fi

if [ "$6" = true ] ; then

echo Running: mypy --install-types --non-interactive --ignore-missing-imports --follow-imports=silent --show-column-numbers ${14} $1
echo Running: ${18} mypy --install-types --non-interactive --ignore-missing-imports --follow-imports=silent --show-column-numbers ${14} $1

${18} mypy \
--install-types --non-interactive \
Expand All @@ -136,7 +136,7 @@ fi

if [ "$7" = true ] ; then

echo Running: isort ${15} $1 -c --diff
echo Running: ${18} isort ${15} $1 -c --diff

${18} isort ${15} $1 -c --diff
exit_code=$?
Expand All @@ -151,7 +151,7 @@ fi

if [ "$8" = true ] ; then

echo Running: vulture ${16} $1
echo Running: ${18} vulture ${16} $1

${18} vulture ${16} $1
exit_code=$?
Expand All @@ -166,7 +166,7 @@ fi

if [ "$9" = true ] ; then

echo Running: pydocstyle ${17} $1
echo Running: ${18} pydocstyle ${17} $1

${18} pydocstyle ${17} $1
exit_code=$?
Expand Down