Merge pull request #978 from maykinmedia/hotfix/ckeditor-bullet-list #2100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.8' | |
- uses: isort/[email protected] | |
with: | |
requirementsFiles: requirements/ci.txt | |
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.8' | |
- name: Install dependencies | |
run: | | |
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.8' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements/ci.txt | |
- name: Run flake8 | |
run: | | |
flake8 src --ignore=E501,F405,W503,F401 |