mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-13 10:20:10 +01:00
ci: fix mypy if condition
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install flake8 pytest pytest-mock mypy types-protobuf
|
||||
pip install --use-pep517 -r requirements.txt
|
||||
mypy --install-types --non-interactive
|
||||
mypy --install-types --non-interactive *.py
|
||||
- name: Lint with flake8
|
||||
run: |
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
@@ -48,6 +48,6 @@ jobs:
|
||||
- name: Type checking with mypy
|
||||
run: |
|
||||
mypy --strict *.py
|
||||
if: matrix.python-version == "3.x"
|
||||
if: matrix.python-version == '3.x'
|
||||
- name: Test with pytest
|
||||
run: pytest
|
||||
|
||||
@@ -228,7 +228,7 @@ eval "$cmd"
|
||||
|
||||
# Type checking
|
||||
|
||||
cmd="$MYPY --install-types --non-interactive"
|
||||
cmd="$MYPY --install-types --non-interactive *.py"
|
||||
if $interactive ; then askContinueYn "$cmd"; else echo -e "${cyan}$cmd${reset}";fi
|
||||
eval "$cmd"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user