nox: add shellcheck linter
This commit is contained in:
parent
a6e64cef92
commit
1dd6079450
1 changed files with 3 additions and 1 deletions
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue