From 21b2c503b48eccfeccbad522330e86e1b32aa914 Mon Sep 17 00:00:00 2001 From: M Bussonnier Date: Tue, 16 Jul 2024 11:16:55 +0200 Subject: [PATCH] move mypy conf to pyproject.toml --- mypy.ini | 14 -------------- pyproject.toml | 23 +++++++++++++++++++++++ 2 files changed, 23 insertions(+), 14 deletions(-) delete mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index cd82f49c..00000000 --- a/mypy.ini +++ /dev/null @@ -1,14 +0,0 @@ -[mypy] -warn_incomplete_stub = False -warn_unused_configs = True - -exclude = (?x)( - _dbg\.py - |_py\.py - ) - -[mypy-epydoc] -ignore_missing_imports = True - -[mypy-IPython] -ignore_missing_imports = True diff --git a/pyproject.toml b/pyproject.toml index 68847bb5..6a68fee8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,26 @@ [build-system] requires = ["setuptools >= 61.0"] build-backend = "setuptools.build_meta" + +[tool.mypy] +files = ['lib'] +#warn_incomplete_stub = false +warn_unused_configs = true +#ignore_missing_imports = true +follow_imports = 'silent' +# disallow_untyped_defs = true +# ignore_errors = false +# ignore_missing_imports = false +# disallow_untyped_calls = true +# disallow_incomplete_defs = true +# check_untyped_defs = true +# disallow_untyped_decorators = true +warn_redundant_casts = true +exclude = '(?x)(_dbg\.py|_py\.py)' + +[[tool.mypy.overrides]] +module = [ + "pyflyby._docxref", + "pyflyby._interactive", +] +ignore_errors = true