From 6065f397e3c8d47482d124c4adf0b276985d7077 Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Sun, 16 Jun 2024 10:15:17 -0700 Subject: [PATCH] mypy: set disallow_incomplete_defs=true --- Makefile | 2 +- pyproject.toml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 382acbd..2861ada 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL=/bin/bash lint: ruff $$(dirname */__init__.py) - mypy --install-types --non-interactive --check-untyped-defs $$(dirname */__init__.py) + mypy --install-types --non-interactive $$(dirname */__init__.py) test: python ./test/test.py -v diff --git a/pyproject.toml b/pyproject.toml index f76dfb4..a59e386 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,13 @@ skip_gitignore = true line-length = 120 per-file-ignores = {"yq/__init__.py" = ["F401"]} +[tool.mypy] +files = [ + "yq" +] +check_untyped_defs = true +disallow_incomplete_defs = true + [[tool.mypy.overrides]] module = "argcomplete.*" ignore_missing_imports = true