Skip to content

ODC environment configuration #2013

ODC environment configuration

ODC environment configuration #2013

Workflow file for this run

---
name: Code Linting
on:
pull_request:
branches:
- 'master'
- 'develop-1.9'
paths:
- '**'
- '.github/workflows/lint.yml'
- '!docs/**'
- '!*.rst'
- '!*.md'
- '!datacube_ows/__init__.py'
- '!.github/**'
push:
branches:
- 'master'
paths:
- '**'
- '.github/workflows/lint.yml'
- '!docs/**'
- '!*.rst'
- '!*.md'
- '!datacube_ows/__init__.py'
- '!.github/**'
jobs:
pylint:
runs-on: ubuntu-latest
name: Pylint
steps:
- name: checkout git
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies and run pylint
run: |
pip install .[test,dev]
pip install pylint
pylint -j 2 --reports no datacube_ows --disable=C,R,W,E1136
flake8:
name: flake8
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ["3.10"]

Check failure on line 54 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / Code Linting

Invalid workflow file

The workflow is not valid. .github/workflows/lint.yml (Line: 54, Col: 27): A sequence was not expected
- run: python -m pip install flake8
- name: flake8 cleanup imported but unused
uses: liskin/gh-problem-matcher-wrap@v3
with:
linters: flake8
run: |
flake8 . --exclude Dockerfile --ignore=E501 --select=F401,E201,E202,E203,E502,E241,E225,E306,E231,E226,E123,F811
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
name: MyPy
steps:
- name: checkout git
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup conda
uses: s-weigand/setup-conda@v1
with:
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 '.[dev]'
mypy datacube_ows