Skip to content

Commit

Permalink
ci: include docs directory in linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed Oct 3, 2024
1 parent 5b56a7c commit ab9e62b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dev requirements
run: pip install -r requirements_dev.txt
- name: Check black
run: black --check iati_sphinx_theme
- name: Check isort
run: isort --check-only iati_sphinx_theme
- name: Check flake8
run: flake8 iati_sphinx_theme
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dev requirements
run: pip install -r requirements_dev.txt
- name: Check black
run: black --check iati_sphinx_theme docs
- name: Check isort
run: isort --check-only iati_sphinx_theme docs
- name: Check flake8
run: flake8 iati_sphinx_theme docs
- name: Check mypy
run: mypy iati_sphinx_theme docs
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pip install -r requirements_dev.txt
### Run linting

```
black iati_sphinx_theme/
isort iati_sphinx_theme/
flake8 iati_sphinx_theme/
mypy iati_sphinx_theme/
black iati_sphinx_theme/ docs/
isort iati_sphinx_theme/ docs/
flake8 iati_sphinx_theme/ docs/
mypy iati_sphinx_theme/ docs/
```

### Documentation with live preview
Expand Down

0 comments on commit ab9e62b

Please sign in to comment.