From ccd56a3b38cfc9cc08e05856252b619d5d3738bf Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Mon, 16 Sep 2024 23:59:37 +0100 Subject: [PATCH] Add shellcheck-py so that GitHub workflow files get linted for shell issues --- .gitignore | 2 ++ pyproject.toml | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index ec1645423..0a4d3ec0c 100644 --- a/.gitignore +++ b/.gitignore @@ -109,3 +109,5 @@ secrets.tar # setuptools_scm src/*/_setuptools_scm_version.txt + +uv.lock diff --git a/pyproject.toml b/pyproject.toml index e148e17b2..2546fbd92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,10 @@ optional-dependencies.dev = [ "pytest-cov==5.0.0", "pyyaml==6.0.2", "ruff==0.6.5", + # We add shellcheck-py not only for shell scripts and shell code blocks, + # but also because having it installed means that ``actionlint-py`` will + # use it to lint shell commands in GitHub workflow files. + "shellcheck-py==0.10.0.1", "sphinx==8.0.2", "sphinx-copybutton==0.5.2", "sphinx-substitution-extensions==2024.8.6",