Small updates README and linting script #7
Workflow file for this run
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: Check linters | |
on: | |
push: | |
branches: | |
- main | |
- 'feature/*' | |
- '[0-9]*-*[a-zA-Z]*' # regex should match typical issue branches names | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry==1.8.1 | |
poetry install --no-root | |
- name: Run isort | |
run: | | |
poetry run isort --check-only . | |
- name: Run black | |
run: | | |
poetry run black --check . | |
- name: Run pylint | |
run: | | |
poetry run pylint --recursive y . |