From 023118be9aab3d9e300efc07887f5e96d934fd7d Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Fri, 8 Dec 2023 16:57:28 -0700 Subject: [PATCH] Add numpydoc validation to actions --- .github/workflows/docstyle.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/docstyle.yaml b/.github/workflows/docstyle.yaml index d598d35e4e..da18b29fb5 100644 --- a/.github/workflows/docstyle.yaml +++ b/.github/workflows/docstyle.yaml @@ -11,3 +11,18 @@ jobs: uses: lsst/rubin_workflows/.github/workflows/docstyle.yaml@main with: args: "python/lsst/daf/butler/core/" + numpydoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + + - name: Install numpydoc + run: | + python -m pip install --upgrade pip + python -m pip install numpydoc + + - name: Validate docstrings + run: python -m numpydoc.hooks.validate_docstrings $(find python -name "*.py")