Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBeilschmidt committed Jan 17, 2025
1 parent 7be0302 commit 20658a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ jobs:
run: |
echo "GEOENGINE_VERSION=$(cat .github/.backend_git_ref)" >> $GITHUB_OUTPUT
if ${{ inputs.use-uv }}; then
echo "PIP_PREFIX=uv" >> $GITHUB_OUTPUT
echo "PIP_RESOLUTION=--resolution=lowest-direct" >> $GITHUB_OUTPUT
echo "PIP_INSTALL=uv pip install --resolution=lowest-direct" >> $GITHUB_OUTPUT
echo "VENV_CALL=source .venv/bin/activate" >> $GITHUB_OUTPUT
else
echo "PIP_PREFIX=" >> $GITHUB_OUTPUT
echo "PIP_RESOLUTION=" >> $GITHUB_OUTPUT
echo "PIP_INSTALL=pip install" >> $GITHUB_OUTPUT
echo "VENV_CALL=" >> $GITHUB_OUTPUT
fi
if ${{ inputs.coverage }}; then
Expand Down Expand Up @@ -97,7 +95,7 @@ jobs:
- name: Install build dependencies
run: |
${{ steps.vars.outputs.VENV_CALL }}
${{ steps.vars.outputs.PIP_PREFIX }} pip install ${{ steps.vars.outputs.PIP_RESOLUTION }} -e .[dev]
${{ steps.vars.outputs.PIP_INSTALL }} -e .[dev]
- name: Check Formatting
run: |
${{ steps.vars.outputs.VENV_CALL }}
Expand All @@ -115,7 +113,7 @@ jobs:
- name: Install test dependencies
run: |
${{ steps.vars.outputs.VENV_CALL }}
${{ steps.vars.outputs.PIP_PREFIX }} pip install ${{ steps.vars.outputs.PIP_RESOLUTION }} -e .[test]
${{ steps.vars.outputs.PIP_INSTALL }} -e .[test]
- name: Lint tests
run: |
${{ steps.vars.outputs.VENV_CALL }}
Expand All @@ -139,7 +137,7 @@ jobs:
- name: Examples
run: |
${{ steps.vars.outputs.VENV_CALL }}
${{ steps.vars.outputs.PIP_PREFIX }} pip install ${{ steps.vars.outputs.PIP_RESOLUTION }} -e .[examples]
${{ steps.vars.outputs.PIP_INSTALL }} -e .[examples]
python test_all_notebooks.py
env:
GEOENGINE_TEST_CODE_PATH: ${{ github.workspace }}/backend
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ install_requires =
[options.extras_require]
dev =
build >=0.7,<0.11
mypy >=0.97,<2.0
mypy >=1.14.1,<2.0
pdoc3 >=0.10,<0.11
pycodestyle >=2.8,<3 # formatter
pylint >=3.3,<4 # code linter
Expand Down

0 comments on commit 20658a5

Please sign in to comment.