requirements-dev.txt: also install doc dependencies #79
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: Lint | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Run isort check | |
uses: isort/isort-action@master | |
with: | |
configuration: "--check-only --diff --profile black" | |
- name: Run isort | |
if: failure() | |
uses: isort/isort-action@master | |
with: | |
configuration: "--profile black" | |
- name: Run black check | |
uses: psf/black@stable | |
with: | |
options: "--check --diff" | |
- name: Run black format | |
if: failure() | |
uses: psf/black@stable | |
with: | |
options: "" | |
- name: Commit isort+black format | |
if: failure() | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "Apply black to code" | |