include docs/bin/*.py in noxfile linting

This enforce the Python linters in the noxfile on the Python files in
docs/bin.

(cherry picked from commit 320d1bed6f)
This commit is contained in:
Maxwell G
2023-10-10 19:34:40 +00:00
parent 4813a7a559
commit 98e579ca9c
2 changed files with 13 additions and 1 deletions

5
.mypy.ini Normal file
View File

@@ -0,0 +1,5 @@
[mypy]
check_untyped_defs = True
[mypy-ansible.*]
ignore_missing_imports = True

View File

@@ -1,9 +1,16 @@
from __future__ import annotations
import os
from glob import iglob
from pathlib import Path
import nox
LINT_FILES = ("hacking/pr_labeler/label.py", "noxfile.py")
LINT_FILES: tuple[str, ...] = (
"hacking/pr_labeler/label.py",
"noxfile.py",
*iglob("docs/bin/*.py"),
)
PINNED = os.environ.get("PINNED", "true").lower() in {"1", "true"}
nox.options.sessions = ("clone-core", "lint")