Skip to content

Upgraded folding and CP layers #170

Upgraded folding and CP layers

Upgraded folding and CP layers #170

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out with submodules
uses: actions/checkout@v3
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Cache mypy_cache
uses: actions/cache@v3
with:
path: .mypy_cache
key: mypy_cache-${{ hashFiles('pyproject.toml') }}
restore-keys: mypy_cache-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[lint]
bash ./benchmark/install_submodule.sh all
- name: Run Black
run: black --verbose --check --diff $(git ls-files "*.py")
- name: Run Isort
run: isort --verbose --check --diff $(git ls-files "*.py")
- name: Run Pydocstyle
run: pydocstyle --verbose $(git ls-files "*.py")
- name: Run Pylint
run: pylint --verbose --persistent=n $(git ls-files "*.py")
- name: Run Mypy
run: mypy $(git ls-files "*.py")