Skip to content

Merge pull request #55 from NOAA-GSL/IDSSE-578-contd #234

Merge pull request #55 from NOAA-GSL/IDSSE-578-contd

Merge pull request #55 from NOAA-GSL/IDSSE-578-contd #234

Workflow file for this run

name: Lint with pylint
on:
push:
branches:
- 'main'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
name: Lint
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python-version: [ "3.11" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pylint==2.17.5 python-dateutil==2.8.2 pint==0.21 importlib-metadata==6.7.0 jsonschema==4.19.0 pika==1.3.1 pyproj numpy==1.26.2 shapely==2.0.2 netcdf4==1.6.3 h5netcdf==1.1.0 pillow==10.2.0
- name: Set PYTHONPATH for pylint
run: |
echo "PYTHONPATH=python/idsse_common/idsse/common" >> $GITHUB_ENV
- name: Run code linter
run: pylint ./python/idsse_common --max-line-length=120 --recursive true