Skip to content

Commit

Permalink
mypy: set disallow_incomplete_defs=true
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Jun 16, 2024
1 parent 799c516 commit 6065f39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6065f39

Please sign in to comment.