From ab9e62b5ece5f6cdc64ca5270c3745d53c0f4a3d Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:41:25 +0300 Subject: [PATCH] ci: include docs directory in linting --- .github/workflows/ci.yml | 26 ++++++++++++++------------ README.md | 8 ++++---- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8582934..d4f92d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index 2fd1d2a..c7d81d3 100644 --- a/README.md +++ b/README.md @@ -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