mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
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:
5
.mypy.ini
Normal file
5
.mypy.ini
Normal file
@@ -0,0 +1,5 @@
|
||||
[mypy]
|
||||
check_untyped_defs = True
|
||||
|
||||
[mypy-ansible.*]
|
||||
ignore_missing_imports = True
|
||||
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user