diff --git a/.mypy.ini b/.mypy.ini new file mode 100644 index 0000000000..e176756d25 --- /dev/null +++ b/.mypy.ini @@ -0,0 +1,5 @@ +[mypy] +check_untyped_defs = True + +[mypy-ansible.*] +ignore_missing_imports = True diff --git a/noxfile.py b/noxfile.py index 6c8015da9a..cc7e39bc50 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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")