nox: add shellcheck linter

This commit is contained in:
Maxwell G 2024-03-02 19:01:44 +00:00
commit 1dd6079450
Signed by: gotmax23
GPG key ID: F79E4E25E8C661F8

View file

@ -4,6 +4,7 @@
from __future__ import annotations
from collections.abc import Sequence
from glob import iglob
from pathlib import Path
import nox
@ -44,9 +45,10 @@ def lint(session: nox.Session):
@nox.session
def static(session: nox.Session):
install(session, "ruff >= 0.2.0", "reuse", "yamllint")
install(session, "ruff >= 0.2.0", "reuse", "yamllint", "shellcheck-py")
session.run("ruff", "check", *session.posargs, *PY_FILES)
session.run("yamllint", *YAML_FILES)
session.run("shellcheck", *iglob("tools/*.sh"))
session.run("reuse", "lint")