Skip to content

Commit

Permalink
chore: enable mypy checks | add check for taipy templates changes
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoandre-avaiga committed Dec 20, 2023
1 parent 45dc27f commit 9a0778e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/overall-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: curl https://raw.githubusercontent.com/pypa/pipenv/master/get-pipenv.py | python

- name: Install Dependencies
run: pipenv install --dev --python=${{ inputs.python-version }}
run: pipenv install --dev --python=${{ matrix.python-version }}

- name: Setup LibMagic (MacOS)
if: matrix.os == 'macos-latest'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-versions }}

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/partial-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
use-mypy: false
extra-black-options: "--line-length=120 --diff"
extra-pycodestyle-options: "--max-line-length=120 --exclude=tests/gui --ignore=E121,E123,E126,E226,E24,E704,W503,W504,E203"
extra-mypy-options: "--ignore-missing-imports --implicit-optional --no-namespace-packages --exclude (taipy/templates/|generate_pyi.py) --follow-imports skip"
extra-mypy-options: "--ignore-missing-imports --implicit-optional --no-namespace-packages --exclude (taipy/templates/|generate_pyi.py|tools) --follow-imports skip"
extra-isort-options: "--line-length=120 --force-grid-wrap=10 --multi-line=VERTICAL_HANGING_INDENT --trailing-comma"
tests:
needs: linter
Expand Down Expand Up @@ -51,6 +51,8 @@ jobs:
- 'taipy/logger/**'
rest:
- 'taipy/rest/**'
templates:
- 'taipy/templates/**'
- uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -104,3 +106,7 @@ jobs:
- name: Pytest Rest
if: steps.changes.outputs.rest == 'true'
run: pipenv run pytest tests/rest

- name: Pytest Rest
if: steps.changes.outputs.templates == 'true'
run: pipenv run pytest tests/templates

0 comments on commit 9a0778e

Please sign in to comment.