Skip to content

pyproject.toml

pyproject.toml #252

Workflow file for this run

name: flake8
on:
push:
branches:
- '*'
jobs:
flake8:
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Miniconda & Environment
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.11
auto-update-conda: true
activate-environment: moranpycess-dev
environment-file: environment.yml
auto-activate-base: false
- name: Conda Info
shell: bash -l {0}
run: |
conda info -a
conda list
- name: Black
shell: bash -l {0}
run: |
black --check moranpycess/__init__.py
black --check moranpycess/Individual.py
black --check moranpycess/MoranProcess.py
black --check moranpycess/MoranProcess2D.py
black --check moranpycess/MoranProcess3D.py
black --check moranpycess/CustomExceptions.py
black --check tests/unit/context.py
black --check tests/unit/Individual.py
black --check tests/unit/MoranProcess.py
black --check tests/unit/MoranProcess2D.py
black --check tests/unit/MoranProcess3D.py
- name: Flake8
shell: bash -l {0}
run: |
flake8 --max-line-length=88 --ignore F401,E402 moranpycess/__init__.py
flake8 --max-line-length=88 moranpycess/Individual.py
flake8 --max-line-length=101 --ignore F401,E231,W503,E741 moranpycess/MoranProcess.py
flake8 --max-line-length=101 --ignore F401,E231,W503,E741 moranpycess/MoranProcess2D.py
flake8 --max-line-length=101 --ignore F401,E231,W503,E741 moranpycess/MoranProcess3D.py
flake8 --max-line-length=88 moranpycess/CustomExceptions.py
flake8 --max-line-length=88 --ignore F401,E402 tests/unit/context.py
flake8 --max-line-length=88 tests/unit/Individual.py
flake8 --max-line-length=88 tests/unit/MoranProcess.py
flake8 --max-line-length=88 --ignore E231 tests/unit/MoranProcess2D.py
flake8 --max-line-length=88 --ignore E231 tests/unit/MoranProcess3D.py