Update .readthedocs.yml #22
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-style | |
on: | |
push: | |
branches: "*" | |
jobs: | |
lint-black: | |
name: black-formatter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install Black | |
run: | | |
python -m pip install black | |
- name: Black Code Formatter | |
run: | | |
black --check --line-length 120 --skip-string-normalization . | |
lint-flake8: | |
name: flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install Flake8 | |
run: | | |
python -m pip install flake8 | |
- name: Flake8 check | |
run: | | |
flake8 . | |
lint-isort: | |
name: isort | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install isort | |
run: | | |
python -m pip install isort | |
- name: isort check | |
run: | | |
isort --recursive --check-only . |