From ba2009aa930eb526174e6584c59ef32d16605f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Fri, 15 Nov 2024 15:43:11 +0100 Subject: [PATCH] chore: moved mypy options into pyproject.toml --- Makefile | 2 +- pyproject.toml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b537b9be..b01e14cb 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ eval: poetry run gptme-eval typecheck: - poetry run mypy --ignore-missing-imports --check-untyped-defs ${SRCDIRS} $(if $(EXCLUDES),$(foreach EXCLUDE,$(EXCLUDES),--exclude $(EXCLUDE))) + poetry run mypy ${SRCDIRS} $(if $(EXCLUDES),$(foreach EXCLUDE,$(EXCLUDES),--exclude $(EXCLUDE))) RUFF_ARGS=${SRCDIRS} $(foreach EXCLUDE,$(EXCLUDES),--exclude $(EXCLUDE)) diff --git a/pyproject.toml b/pyproject.toml index 96c42090..72e22084 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -111,6 +111,10 @@ ignore = ["E402", "E501", "B905"] #fixable = ["ALL"] #unfixable = ["B"] +[tool.mypy] +ignore_missing_imports = true +check_untyped_defs = true + [tool.pytest.ini_options] markers = [ "slow: marks tests as slow (deselect with '-m \"not slow\"')",