summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Kislyuk <andrey.kislyuk@color.com>2024-06-16 10:15:17 -0700
committerAndrey Kislyuk <andrey.kislyuk@color.com>2024-06-16 10:15:17 -0700
commit6065f397e3c8d47482d124c4adf0b276985d7077 (patch)
treea487482624200437163970d0a30a36c7fb2ece44
parent799c51677fbc31ea5ef49c5c75e60f3cb477edad (diff)
mypy: set disallow_incomplete_defs=trueHEADdevelop
-rw-r--r--Makefile2
-rw-r--r--pyproject.toml7
2 files changed, 8 insertions, 1 deletions
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