Skip to content

Fix CI testing errors python 3.11 & dask #72

Fix CI testing errors python 3.11 & dask

Fix CI testing errors python 3.11 & dask #72

Workflow file for this run

# This workflow performs code quality checks like:
# - PEP8: the workflow fails if code is not PEP8 compliant
# - flake8: the problems identified by flake 8 are listed but the workflow
# presently doesn't fail if flake reports errors.
name: Code Quality
on:
pull_request:
push:
branches:
- main
- develop
- stable**
env:
max_line_length: 150
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: install pip tools
run: |
python -m pip install --upgrade pip
pip install --upgrade pip-tools
- name: install code quality tools
run: pip install --upgrade autopep8 flake8
- name: Run (partial) flake8
if: ${{ ! cancelled() }}
run: flake8 --select F401,F522,F524,F541 --show-source ./
- name: check PEP8 compliance
if: ${{ ! cancelled() }}
id: autopep8
run: |
autopep8 --diff --exit-code --recursive --max-line-length ${{ env.max_line_length }} --ignore E402 .