Skip to content

Commit

Permalink
Added mypy check. Removed isort check.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Apr 24, 2024
1 parent 2421fef commit febd90f
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.10
- run: python -m pip install flake8
- name: flake8 cleanup imported but unused
uses: liskin/gh-problem-matcher-wrap@v3
Expand All @@ -60,19 +60,25 @@ jobs:
run: |
flake8 . --exclude Dockerfile --ignore=E501 --select=F401,E201,E202,E203,E502,E241,E225,E306,E231,E226,E123,F811
isort:
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
name: MyPy
steps:
- name: Checkout
- name: checkout git
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- run: python -m pip install isort
- name: isort
uses: liskin/gh-problem-matcher-wrap@v3
fetch-depth: 0
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
linters: isort
run: |
isort --check --diff .
update-conda: true
python-version: ${{ matrix.python-version }}
conda-channels: anaconda, conda-forge
- name: run mypy
run: |
sudo apt-get remove python3-openssl
pip install --upgrade -e '.[types]'
mypy datacube_ows

0 comments on commit febd90f

Please sign in to comment.