Skip to content

Passing CI checks #2149

Passing CI checks

Passing CI checks #2149

Workflow file for this run

name: Code quality
on: [push]
jobs:
isort:
name: Import sorting (isort)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install "pip<24" -U
pip install -r requirements/ci.txt
- uses: isort/[email protected]
with:
sortPaths: "src"
configuration: '--check-only --diff'
black:
name: Code formatting (black)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install "pip<24" -U
pip install -r requirements/ci.txt
- name: Run black
run: |
black --check src
flake8:
name: Code style (flake8)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install "pip<24" -U
pip install -r requirements/ci.txt
- name: Run flake8
run: |
flake8 src --ignore=E501,F405,W503,F401