Skip to content

Fix flake8 error.

Fix flake8 error. #135

Workflow file for this run

name: Test
on: [push]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
name: Test (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
channels: conda-forge
activate-environment: cutde
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
- name: Install cutde
run: |
pip install --no-use-pep517 --no-deps --disable-pip-version-check -e .
- name: Lint with flake8
run: |
flake8 .
- name: Check formatting with black
run: |
black --check .
- name: Check import ordering with isort
run: |
isort --check .
- name: Test
run: |
CFLAGS='-stdlib=libc++' pytest --runslow --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false